struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20101025-1.c
blobbdbf72d6ae146844b4d5928700f78602eded8b81
1 /*
2 20101025-1.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 static int g_7;
12 static int *volatile g_6 = &g_7;
13 int g_3;
15 static int f1 (int *p_58)
17 return *p_58;
20 void f2 (int i);
21 void f2 (int i)
23 g_3 = i;
26 int f3 (void);
27 int f3 (void)
29 *g_6 = 1;
30 f2 (f1 (&g_7));
31 return 0;
34 void
35 testTortureExecute (void)
37 f3 ();
38 if (g_3 != 1)
39 ASSERT (0);
40 return;