struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr60072.c
blob9971761a0275183a132d969ac21bcce0deef6cb6
1 /*
2 pr60072.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 /* PR target/60072 */
13 int c = 1;
15 static int *foo (int *p)
17 return p;
20 int
21 m ()
23 *foo (&c) = 2;
24 return c - 2;
27 void
28 testTortureExecute (void)
30 m();