New test.
authorJeffrey A Law <law@cygnus.com>
Tue, 14 Mar 2000 16:06:24 +0000 (16:06 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 14 Mar 2000 16:06:24 +0000 (09:06 -0700)
From-SVN: r32529

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

index ace87e8952fc4f4363a85ef0f15a735eb41e3993..b83b56da0bf28acbb423fb1806358ce6b806183e 100644 (file)
@@ -1,3 +1,7 @@
+Tue Mar 14 08:58:37 2000  Jeffrey A Law  (law@cygnus.com)
+
+       * gcc.c-torture/compile/2000314-1.c: New test.
+
 2000-03-13  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.old-deja/g++.warn/inline.C: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000314-1.c b/gcc/testsuite/gcc.c-torture/compile/20000314-1.c
new file mode 100644 (file)
index 0000000..26c13a7
--- /dev/null
@@ -0,0 +1,11 @@
+struct {
+   char a[5];
+} *p;
+
+int main ()
+{
+   int i = -1;
+   
+   if(p->a[-i])
+     return 1;
+}