diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-21 23:58:58 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-21 23:58:58 +0000 |
| commit | 737f9842138aca6e4b6f44e26773288bb4dccd58 (patch) | |
| tree | ee2094741963fc8bdbc6a7e46bb78ea994965c09 /tests | |
| parent | cfef9ac3f53bf46a0283ae427810d1d950661016 (diff) | |
| download | tinycc-737f9842138aca6e4b6f44e26773288bb4dccd58.tar.gz tinycc-737f9842138aca6e4b6f44e26773288bb4dccd58.tar.bz2 | |
tccgen.c: Bug fix for 992cbda and 3ff77a1: set nocode_wanted.
tests/tests2/78_vla_label.*: Add test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tests2/78_vla_label.c | 9 | ||||
| -rw-r--r-- | tests/tests2/78_vla_label.expect | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/tests2/78_vla_label.c b/tests/tests2/78_vla_label.c index 39654c6..4096495 100644 --- a/tests/tests2/78_vla_label.c +++ b/tests/tests2/78_vla_label.c @@ -27,10 +27,19 @@ void f2(void) } } +void f3(void) +{ + printf("%d\n", 0 ? printf("x1\n") : 11); + printf("%d\n", 1 ? 12 : printf("x2\n")); + printf("%d\n", 0 && printf("x3\n")); + printf("%d\n", 1 || printf("x4\n")); +} + int main() { f1(2); f2(); + f3(); return 0; } diff --git a/tests/tests2/78_vla_label.expect b/tests/tests2/78_vla_label.expect index 9a8c159..3f4063b 100644 --- a/tests/tests2/78_vla_label.expect +++ b/tests/tests2/78_vla_label.expect @@ -1,2 +1,6 @@ boom! boom! +11 +12 +0 +1 |
