struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000722-1.c
blobc8c8f65d5c79e69b885927711ba094da1dab77c9
1 /*
2 20000722-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 // TODO: Enable whens dcc supports this!
12 #if 0
13 struct s { char *p; int t; };
15 extern void bar (void);
16 extern void foo (struct s *);
17 #endif
19 void
20 testTortureExecute (void)
22 #if 0
23 bar ();
24 bar ();
25 return;
26 #endif
29 #if 0
30 void
31 bar (void)
33 foo (& (struct s) { "hi", 1 });
35 #endif
37 #if 0
38 void foo (struct s *p)
40 if (p->t != 1)
41 ASSERT (0);
42 p->t = 2;
44 #endif