aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58921.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58921.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58921.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58921.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58921.c
new file mode 100644
index 000000000..7d7c98514
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58921.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+
+int a[7];
+int b;
+
+void
+fn1 ()
+{
+ for (; b; b++)
+ a[b] = ((a[b] <= 0) == (a[0] != 0));
+}
+
+int
+main ()
+{
+ return 0;
+}