Fix test for LP64, move it to gcc.c-torture/compile (per Kaveh Ghazi)

From-SVN: r60111
This commit is contained in:
Dale Johannesen 2002-12-14 00:54:02 +00:00
parent a58be199f1
commit 69db9b9903

View File

@ -1,8 +1,9 @@
/* dg-do compile */ /* dg-do compile */
/* dg-options "-O3" */ /* dg-options "-O3" */
typedef struct x x; typedef struct x x;
extern void *baz(char *);
struct x { char * (*bar) (int); }; struct x { char * (*bar) (int); };
static x **foo() { return ((x**)baz()); } static x **foo() { return ((x**)baz(0)); }
int xyzzy() int xyzzy()
{ {
baz((*foo())->bar(0)); baz((*foo())->bar(0));