aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20040614-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20040614-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20040614-1.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20040614-1.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20040614-1.c
new file mode 100644
index 000000000..d99d27896
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20040614-1.c
@@ -0,0 +1,20 @@
+#ifndef NO_LABEL_VALUES
+void f(int r1, int *fp)
+{
+ void *hlbl_tbl[] = { &&label1 };
+ goto *hlbl_tbl[r1];
+ *fp = 0;
+ label0:
+ fp += 8;
+ label1:
+ *fp = 0;
+ if (r1)
+ goto label2;
+ if (r1)
+ goto label0;
+ label2:
+ ;
+}
+#else
+int x;
+#endif