commit 40988072e3c4e62f84955db9615aa2a1d6c4763d
parent 0beb99d6fdbf41b0f7781f5053ed470f7bc83610
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 3 Nov 2022 09:48:50 +0100
test/cc: Assign some value to bp in 0158-ternary.c
Qbe refuses to compile code that reads a value that was never
written, even when the path actually doesn't happen.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/cc/execute/0158-ternary.c b/tests/cc/execute/0158-ternary.c
@@ -2,7 +2,7 @@ int
main(void)
{
int i = 0, *q;
- unsigned char *bp;
+ unsigned char *bp = 0;
void *p;
i = i ? 0 : 0l;