commit 56e1036fdea82afeb978df88023a58807d055ba2
parent d5e1278774321b7268fc985e2ccb3fc9787e00a3
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;