aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/label-unreachable.c
diff options
context:
space:
mode:
Diffstat (limited to 'validation/linear/label-unreachable.c')
-rw-r--r--validation/linear/label-unreachable.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/validation/linear/label-unreachable.c b/validation/linear/label-unreachable.c
new file mode 100644
index 00000000..a44e1211
--- /dev/null
+++ b/validation/linear/label-unreachable.c
@@ -0,0 +1,20 @@
+static int foo(int a)
+{
+ goto label;
+ switch(a) {
+ default:
+label:
+ break;
+ }
+ return 0;
+}
+
+/*
+ * check-name: label-unreachable
+ * check-command: test-linearize $file
+ *
+ * check-error-ignore
+ * check-output-ignore
+ * check-output-contains: ret\\.
+ * check-output-excludes: END
+ */