struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr33142.c
blobe0713774b851f6b9ef90cc5fba999ac0932b673c
1 /*
2 pr33142.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 #include <stdlib.h>
13 int lisp_atan2(long dy, long dx) {
14 if (dx <= 0)
15 if (dy > 0)
16 return abs(dx) <= abs(dy);
17 return 0;
20 void
21 testTortureExecute (void)
23 volatile long dy = 63, dx = -77;
24 if (lisp_atan2(dy, dx))
25 ASSERT(0);
26 return;