aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr17635.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr17635.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr17635.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr17635.c b/gcc/testsuite/gcc.dg/pr17635.c
new file mode 100644
index 00000000000..d2154c3f951
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr17635.c
@@ -0,0 +1,11 @@
+/* PR 17635 */
+/* Contributed by Devang Patel <dpatel@apple.com> */
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-vectorize" } */
+
+void foo(int i)
+{
+ while (1)
+ if (i) ++i;
+}
+