commit 88def4a59d30f577d07610e818af36d0b316481c
parent 1ca006ceea6818ed2195fbde05e2eb92711e99e9
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