/* pr44555.c from the execute part of the gcc torture tests. */ #include #ifdef __SDCC #pragma std_c99 #endif struct a { char b[100]; }; int foo(struct a *a) { if (&a->b) return 1; return 0; } void testTortureExecute (void) { #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ == 4 && __GNUC_MINOR__ < 6)) if (foo((struct a *)0) != 0) ASSERT (0); return; #endif }