aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/78_vla_label.c
diff options
context:
space:
mode:
authorEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-11-21 23:58:58 +0000
committerEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-11-21 23:58:58 +0000
commit737f9842138aca6e4b6f44e26773288bb4dccd58 (patch)
treeee2094741963fc8bdbc6a7e46bb78ea994965c09 /tests/tests2/78_vla_label.c
parentcfef9ac3f53bf46a0283ae427810d1d950661016 (diff)
downloadtinycc-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/tests2/78_vla_label.c')
-rw-r--r--tests/tests2/78_vla_label.c9
1 files changed, 9 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;
}