aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr71518.c
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2016-09-16 15:17:22 +0200
committerYvan Roux <yvan.roux@linaro.org>2016-09-16 15:17:22 +0200
commitae5de607bec054c1611c7d91c4d12cf070fa4159 (patch)
treeb02baf1682bb31f7fc6ffed95aa6b7bd8350b6a8 /gcc/testsuite/gcc.dg/pr71518.c
parentafe3fc322a7edd6a564d5a79b0ab640be227f548 (diff)
All added testcases since linaro 6 branch creation.linaro-local/Yvan-linaro-6-branch-tests
Change-Id: Ibd63e9edfec0418ef3b882b2e0f82a1a17c357b6
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr71518.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr71518.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr71518.c b/gcc/testsuite/gcc.dg/pr71518.c
new file mode 100644
index 00000000000..6240ca8f2bf
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr71518.c
@@ -0,0 +1,25 @@
+/* PR tree-optimization/71518 */
+/* { dg-options "-O3" } */
+
+int a, *b[9], c, d, e;
+
+static int
+fn1 ()
+{
+ for (c = 6; c >= 0; c--)
+ for (d = 0; d < 2; d++)
+ {
+ b[d * 2 + c] = 0;
+ e = a > 1 ? : 0;
+ if (e == 2)
+ return 0;
+ }
+ return 0;
+}
+
+int
+main ()
+{
+ fn1 ();
+ return 0;
+}