aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021205-1.c (renamed from gcc/testsuite/gcc.dg/20021205-1.c)3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/20021205-1.c b/gcc/testsuite/gcc.c-torture/compile/20021205-1.c
index a1876257e2f..9c400cfac3a 100644
--- a/gcc/testsuite/gcc.dg/20021205-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20021205-1.c
@@ -1,8 +1,9 @@
/* 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()); }
+static x **foo() { return ((x**)baz(0)); }
int xyzzy()
{
baz((*foo())->bar(0));