summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr82217.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr82217.c')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr82217.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr82217.c b/gcc/testsuite/gcc.dg/torture/pr82217.c
new file mode 100644
index 00000000000..471f474aab3
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr82217.c
@@ -0,0 +1,32 @@
+/* { dg-do compile } */
+
+int a, b, c;
+
+void fn1 ()
+{
+ while (1)
+ {
+ if (c)
+ goto L2;
+ break;
+ }
+ if (c)
+ {
+L1:
+ {
+ int g[1];
+ if (b)
+ goto L1;
+ goto L1;
+L2:
+ for (a = 0; a;)
+ goto L1;
+ }
+ }
+}
+
+int main ()
+{
+ fn1 ();
+ return 0;
+}