]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Sat, 14 Dec 2002 00:56:36 +0000 (00:56 +0000)
committerNo Author <no-author@gcc.gnu.org>
Sat, 14 Dec 2002 00:56:36 +0000 (00:56 +0000)
'gcc-3_2-branch'.

From-SVN: r60113

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

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;
+}