]> gcc.gnu.org Git - gcc.git/commitdiff
20001018-1.c: New test.
authorJoseph Myers <jsm28@cam.ac.uk>
Tue, 17 Oct 2000 23:35:41 +0000 (00:35 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 17 Oct 2000 23:35:41 +0000 (00:35 +0100)
* gcc.c-torture/compile/20001018-1.c: New test.
* gcc.c-torture/compile/20001018-1.x: Xfail.

From-SVN: r36917

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

index 891e533e0a486a8ebecb4f84d88fc8fa0b8915ce..7ae28fb444e04e91f1bb2627223806db3830e126 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-18  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * gcc.c-torture/compile/20001018-1.c: New test.
+       * gcc.c-torture/compile/20001018-1.x: Xfail.
+
 2000-10-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 
        * gcc.c-torture/execute/20001017-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001018-1.c b/gcc/testsuite/gcc.c-torture/compile/20001018-1.c
new file mode 100644 (file)
index 0000000..86e5cd5
--- /dev/null
@@ -0,0 +1,10 @@
+void
+foo (void)
+{
+  extern char i[10];
+
+  {
+    extern char i[];
+    char x[sizeof (i) == 10 ? 1 : -1];
+  }
+}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001018-1.x b/gcc/testsuite/gcc.c-torture/compile/20001018-1.x
new file mode 100644 (file)
index 0000000..f41cdc2
--- /dev/null
@@ -0,0 +1,2 @@
+set torture_compile_xfail "*-*-*"
+return 0
This page took 0.073417 seconds and 5 git commands to generate.