scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit e661871dd3e996607e7444be1e0ca86be0a8565f
parent d4eb944af8f3300db2c7683dec0f8d1fb431560c
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  1 Nov 2021 10:00:20 +0100

tests/cc: Fix test 0174-decay.c

The base case for the recursion was wrong.

Diffstat:
Mtests/cc/execute/0174-decay.c | 2+-
Mtests/cc/execute/scc-tests.lst | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/cc/execute/0174-decay.c b/tests/cc/execute/0174-decay.c @@ -11,7 +11,7 @@ main(int argc, char *argv[]) f1 = &main; f2 = main; if (argc == 0) - return 1; + return 0; if ((****main)(0, 0)) return 2; if ((****f1)(0, 0)) diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -164,7 +164,7 @@ 0171-macros.c [TODO] 0172-hexa.c 0173-macro.c -0174-decay.c [TODO] +0174-decay.c 0175-defined.c 0176-macro.c [TODO] 0177-literal.c [TODO]