ref: 88def4a59d30f577d07610e818af36d0b316481c
parent: 1ca006ceea6818ed2195fbde05e2eb92711e99e9
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Nov 1 06:07:09 EDT 2021
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.
--- a/tests/cc/execute/0157-list.c
+++ b/tests/cc/execute/0157-list.c
@@ -5,10 +5,10 @@
List *back;
};
+List list;
+
int
main(void)
{
- List List;
-
- return List.len;
+ return list.len;
}
--- 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