Fix test for LP64, move it to gcc.c-torture/compile (per Kaveh Ghazi)
authorDale Johannesen <dalej@gcc.gnu.org>
Sat, 14 Dec 2002 00:54:02 +0000 (00:54 +0000)
committerDale Johannesen <dalej@gcc.gnu.org>
Sat, 14 Dec 2002 00:54:02 +0000 (00:54 +0000)
From-SVN: r60111

gcc/testsuite/gcc.c-torture/compile/20021205-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/20021205-1.c [deleted file]

diff --git a/gcc/testsuite/gcc.c-torture/compile/20021205-1.c b/gcc/testsuite/gcc.c-torture/compile/20021205-1.c
new file mode 100644 (file)
index 0000000..9c400cf
--- /dev/null
@@ -0,0 +1,11 @@
+/* dg-do compile */
+/* dg-options "-O3" */
+typedef struct x x;
+extern void *baz(char *);
+struct x { char * (*bar) (int); };
+static x **foo() { return ((x**)baz(0)); }
+int xyzzy()
+{
+    baz((*foo())->bar(0));
+    return 3;
+}
diff --git a/gcc/testsuite/gcc.dg/20021205-1.c b/gcc/testsuite/gcc.dg/20021205-1.c
deleted file mode 100644 (file)
index a187625..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/* dg-do compile */
-/* dg-options "-O3" */
-typedef struct x x;
-struct x { char * (*bar) (int); };
-static x **foo() { return ((x**)baz()); }
-int xyzzy()
-{
-    baz((*foo())->bar(0));
-    return 3;
-}