aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tests2/78_vla_label.c9
-rw-r--r--tests/tests2/78_vla_label.expect4
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