commit 990dcf7fb41e4b4d050ffb6080ccf794922dd88d
parent 88def4a59d30f577d07610e818af36d0b316481c
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 1 Nov 2021 10:07:09 +0100
tests/cc: Fix 0158-ternary.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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/cc/execute/0158-ternary.c b/tests/cc/execute/0158-ternary.c
@@ -1,7 +1,7 @@
int
main(void)
{
- int i, *q;
+ int i = 0, *q;
void *p;
i = i ? 0 : 0l;