diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-20 23:33:49 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-20 23:33:49 +0000 |
| commit | 3ff77a1d6fbcf08fc6964e8149d188c791cb7f16 (patch) | |
| tree | 6ed2fa4f0810adeefa17e93489fd780f6c5100d6 /tests | |
| parent | c7067aeb844f5421f2256164cbe59bc625d52c25 (diff) | |
| download | tinycc-3ff77a1d6fbcf08fc6964e8149d188c791cb7f16.tar.gz tinycc-3ff77a1d6fbcf08fc6964e8149d188c791cb7f16.tar.bz2 | |
Improve constant propagation with "&&" and "||".
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tests2/78_vla_label.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } } |
