aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr18903.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr18903.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr18903.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr18903.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr18903.c
new file mode 100644
index 000000000..3c1235112
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr18903.c
@@ -0,0 +1,17 @@
+/* We were ICEing in bsi_after_labels because
+ we had a BB which did not have a lablel.
+ PR middle-end/18903 */
+
+#ifndef NO_LABEL_VALUES
+void g (int s, int f)
+{
+ &&ff;
+ s = f;
+ ff:
+ goto end;
+ f = s;
+ end:;
+}
+#else
+int g;
+#endif