shithub: scc

Download patch

ref: e661871dd3e996607e7444be1e0ca86be0a8565f
parent: d4eb944af8f3300db2c7683dec0f8d1fb431560c
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Nov 1 06:00:20 EDT 2021

tests/cc: Fix test 0174-decay.c

The base case for the recursion was wrong.

--- a/tests/cc/execute/0174-decay.c
+++ b/tests/cc/execute/0174-decay.c
@@ -11,7 +11,7 @@
         f1 = &main;
         f2 = main;
         if (argc == 0)
-                return 1;
+                return 0;
         if ((****main)(0, 0))
                 return 2;
         if ((****f1)(0, 0))
--- 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]