From 3ff77a1d6fbcf08fc6964e8149d188c791cb7f16 Mon Sep 17 00:00:00 2001 From: Edmund Grimley Evans Date: Fri, 20 Nov 2015 23:33:49 +0000 Subject: Improve constant propagation with "&&" and "||". --- tests/tests2/78_vla_label.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tests2/78_vla_label.c b/tests/tests2/78_vla_label.c index 93a8b08..39654c6 100644 --- a/tests/tests2/78_vla_label.c +++ b/tests/tests2/78_vla_label.c @@ -17,9 +17,13 @@ void f2(void) { goto start; { - int a[1 ? 1 : 1]; /* not a variable-length array */ + int a[1 && 1]; /* not a variable-length array */ + int b[1 || 1]; /* not a variable-length array */ + int c[1 ? 1 : 1]; /* not a variable-length array */ start: a[0] = 0; + b[0] = 0; + c[0] = 0; } } -- cgit v1.3.1