struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20020611-1.c
blobe2238114960e84778e8da67158d4a798d6ecceab
1 /*
2 20020611-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 /* PR target/6997. Missing (set_attr "cc" "none") in sleu pattern in
12 cris.md. Testcase from hp@axis.com. */
14 int p;
15 int k;
16 unsigned int n;
18 void x ()
20 unsigned int h;
22 h = n <= 30;
23 if (h)
24 p = 1;
25 else
26 p = 0;
28 if (h)
29 k = 1;
30 else
31 k = 0;
34 unsigned int n = 30;
36 void
37 testTortureExecute (void)
39 x ();
40 if (p != 1 || k != 1)
41 ASSERT (0);
42 return;