aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/goto-stmt-expr-conditional.c
diff options
context:
space:
mode:
Diffstat (limited to 'validation/linear/goto-stmt-expr-conditional.c')
-rw-r--r--validation/linear/goto-stmt-expr-conditional.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/validation/linear/goto-stmt-expr-conditional.c b/validation/linear/goto-stmt-expr-conditional.c
new file mode 100644
index 00000000..bbfcb3eb
--- /dev/null
+++ b/validation/linear/goto-stmt-expr-conditional.c
@@ -0,0 +1,27 @@
+int t(void)
+{
+ goto inside;
+ return 1 ? 2 : ({
+inside:
+ return 3;
+ 4;
+ });
+}
+
+void f(int x, int y)
+{
+ 1 ? x : ({
+a:
+ y;
+ });
+ goto a;
+}
+
+/*
+ * check-name: goto-stmt-expr-conditional
+ * check-command: test-linearize -Wno-decl $file
+ *
+ * check-error-ignore
+ * check-output-ignore
+ * check-output-excludes: END
+ */