struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20021111-1.c
blobbf4bd17cb099467c7475e920f356dca8f1d5e611
1 /*
2 20021111-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 /* Origin: PR c/8467 */
13 int aim_callhandler(int sess, int conn, unsigned short family, unsigned short type);
15 int aim_callhandler(int sess, int conn, unsigned short family, unsigned short type)
17 static int i = 0;
19 if (!conn)
20 return 0;
22 if (type == 0xffff)
24 return 0;
27 if (i >= 1)
28 ASSERT (0);
30 i++;
31 return aim_callhandler(sess, conn, family, (unsigned short) 0xffff);
34 void testTortureExecute (void)
36 aim_callhandler (0, 1, 0, 0);
37 return;