struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20001130-2.c
blob307149ab4b41438761306314103a2936b9a7f675
1 /*
2 20001130-2.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 which_alternative = 3;
13 static const char *i960_output_ldconst (void);
15 static const char *
16 output_25 (void)
18 switch (which_alternative)
20 case 0:
21 return "mov %1,%0";
22 case 1:
23 return i960_output_ldconst ();
24 case 2:
25 return "ld %1,%0";
26 case 3:
27 return "st %1,%0";
31 static const char *i960_output_ldconst (void)
33 return "foo";
36 void
37 testTortureExecute (void)
39 const char *s = output_25 () ;
40 if (s[0] != 's')
41 ASSERT (0);
42 return;