OSDN Git Service

PR target/23424
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2005 21:24:20 +0000 (21:24 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2005 21:24:20 +0000 (21:24 +0000)
* gcc.dg/torture/pr23424-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106507 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr23424-1.c [new file with mode: 0644]

index 0b0b8ad..cd669e3 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR target/23424
+       * gcc.dg/torture/pr23424-1.c: New test.
+
 2005-11-04  Richard Henderson  <rth@redhat.com>
 
        * gcc.target/i386/20000609-1.c, gcc.target/i386/20000614-1.c,
diff --git a/gcc/testsuite/gcc.dg/torture/pr23424-1.c b/gcc/testsuite/gcc.dg/torture/pr23424-1.c
new file mode 100644 (file)
index 0000000..91950d7
--- /dev/null
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+extern char *x;
+extern void foo (void);
+void f (char *s, char *se, char *mp, char *y)
+{
+  while (s != se)
+    {
+      char *p;
+      foo ();
+      p = s + *mp;
+      *y++ = *p;
+      s = p;
+    }
+
+  x = s;
+}