commit d5e1278774321b7268fc985e2ccb3fc9787e00a3
parent bd258d7177cb3532b33f457c1fdc7ac7523258cc
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 1 Nov 2021 10:07:09 +0100
tests/cc: Fix 0157-list.c
Reading an automatic value not initialized is not
defined in the standard, and qbe has some problems
in this kind of cases. As we are not testing that
case in the test it is better to remove that problem.
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/cc/execute/0157-list.c b/tests/cc/execute/0157-list.c
@@ -5,10 +5,10 @@ struct List {
List *back;
};
+List list;
+
int
main(void)
{
- List List;
-
- return List.len;
+ return list.len;
}
diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst
@@ -147,7 +147,7 @@
0154-if-defined [TODO]
0155-struct-compl.c [TODO]
0156-duff2.c [TODO]
-0157-list.c [TODO]
+0157-list.c
0158-ternary.c [TODO]
0159-typedef.c
0160-cpp-if.c