From 737f9842138aca6e4b6f44e26773288bb4dccd58 Mon Sep 17 00:00:00 2001 From: Edmund Grimley Evans Date: Sat, 21 Nov 2015 23:58:58 +0000 Subject: tccgen.c: Bug fix for 992cbda and 3ff77a1: set nocode_wanted. tests/tests2/78_vla_label.*: Add test. --- tests/tests2/78_vla_label.c | 9 +++++++++ tests/tests2/78_vla_label.expect | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'tests/tests2') 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 -- cgit v1.3.1