struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20021119-1.c
blob178fce0f57d57d599118f37bb480e13b27b5c076
1 /*
2 20021119-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 8639. */
13 int foo (int i)
15 int r;
16 r = (80 - 4 * i) / 20;
17 return r;
20 void
21 testTortureExecute (void)
23 if (foo (1) != 3)
24 ASSERT (0);
25 return;