struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr44555.c
bloba166089f284995c4dd22e31185e37695745127eb
1 /*
2 pr44555.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 struct a {
12 char b[100];
14 int foo(struct a *a)
16 if (&a->b)
17 return 1;
18 return 0;
21 void
22 testTortureExecute (void)
24 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ == 4 && __GNUC_MINOR__ < 6))
25 if (foo((struct a *)0) != 0)
26 ASSERT (0);
27 return;
28 #endif