struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20040823-1.c
blob800c5ed29175f6821b77a1ed865c50fe2f9afa63
1 /*
2 20040823-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 /* Ensure that we create VUSE operands also for noreturn functions. */
13 #include <stdlib.h>
14 #include <string.h>
16 int *pwarn;
18 void bla (void);
20 void bla (void)
22 if (!*pwarn)
23 ASSERT (0);
25 return;
28 void testTortureExecute (void)
30 int warn;
32 memset (&warn, 0, sizeof (warn));
34 pwarn = &warn;
36 warn = 1;
38 bla ();