scc

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

commit a6c8c2a1b53daa8c2ce23391cbc2d5c34a91f7fb
parent bd87e1895315261b9a7189f161eddaf9b2225557
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]