aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/label-stmt-expr0.c
diff options
context:
space:
mode:
Diffstat (limited to 'validation/linear/label-stmt-expr0.c')
-rw-r--r--validation/linear/label-stmt-expr0.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/validation/linear/label-stmt-expr0.c b/validation/linear/label-stmt-expr0.c
new file mode 100644
index 00000000..ff3c0980
--- /dev/null
+++ b/validation/linear/label-stmt-expr0.c
@@ -0,0 +1,17 @@
+int foo(void);
+int foo(void)
+{
+ int r;
+
+ r = ({ goto label; label: 1; });
+ return r;
+}
+
+/*
+ * check-name: label-stmt-expr0
+ * check-command: test-linearize $file
+ * check-output-ignore
+ *
+ * check-output-excludes: ret\\.32\$
+ * check-output-contains: ret\\.32 *\\$1
+ */