Somehow, I missed to checkin this test when I fixed pr17635 (with
authorDevang Patel <dpatel@gcc.gnu.org>
Tue, 16 Nov 2004 20:04:08 +0000 (12:04 -0800)
committerDevang Patel <dpatel@gcc.gnu.org>
Tue, 16 Nov 2004 20:04:08 +0000 (12:04 -0800)
appropriate ChangeLog entry).

From-SVN: r90757

gcc/testsuite/gcc.dg/pr17635.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/pr17635.c b/gcc/testsuite/gcc.dg/pr17635.c
new file mode 100644 (file)
index 0000000..d2154c3
--- /dev/null
@@ -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;
+}
+