struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20041212-1.c
blob73d836a9ff36b2da8b36ea4a6019459fe35f1990
1 /*
2 20041212-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) //Bug #2903
12 /* A function pointer compared with a void pointer should not be canonicalized.
13 See PR middle-end/17564. */
14 void *f (void);
15 void *
16 f (void)
18 return f;
20 #endif // There was no line here.
21 void
22 testTortureExecute (void)
24 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) //Bug #2903
25 if (f () != f)
26 ASSERT (0);
27 return;
28 #endif