* gcc.c-torture/compile/20030224-1.c: New test for ia32 backend bug.
authorJeff Law <law@redhat.com>
Mon, 24 Feb 2003 18:57:06 +0000 (11:57 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 24 Feb 2003 18:57:06 +0000 (11:57 -0700)
From-SVN: r63371

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

index 91d5151..3f847ef 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-24  Jeff Law  <law@redhat.com>
+
+       * gcc.c-torture/compile/20030224-1.c: New test for ia32 backend bug.
+
 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        * g++.dg/other/pragma-ep-1.C: Test for __PRAGMA_EXTERN_PREFIX.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030224-1.c b/gcc/testsuite/gcc.c-torture/compile/20030224-1.c
new file mode 100644 (file)
index 0000000..54e7c20
--- /dev/null
@@ -0,0 +1,17 @@
+int zzz (char *s1, char *s2, int len, int *q)
+{
+  int z = 5;
+  unsigned int i,  b;
+  struct { char a[z]; } x;
+          
+  for (i = 0; i < len; i++)
+    s1[i] = s2[i];
+
+  b = z & 0x3;
+
+  len += (b == 0 ? 0 : 1) + z;
+    
+  *q = len;
+
+  foo (x, x);
+}