struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr37125.c
blob0e18f097b01a8e328bb4124bc0d96d1e9a7c719a
1 /*
2 pr37125.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 inline unsigned int
12 mod_rhs(int rhs)
14 if (rhs == 0) return 1;
15 return rhs;
18 void func_44 (unsigned int p_45);
19 void func_44 (unsigned int p_45)
21 if (!((p_45 * -9) % mod_rhs (-9))) {
22 ASSERT (0);
26 void
27 testTortureExecute (void)
29 func_44 (2);
30 return;