2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20021111-1.c
blobb81fa0b0f88e2d90e773ea22163a892d879e8f26
1 /* Origin: PR c/8467 */
3 extern void abort (void);
4 extern void exit (int);
6 int aim_callhandler(int sess, int conn, unsigned short family, unsigned short type);
8 int aim_callhandler(int sess, int conn, unsigned short family, unsigned short type)
10 static int i = 0;
12 if (!conn)
13 return 0;
15 if (type == 0xffff)
17 return 0;
20 if (i >= 1)
21 abort ();
23 i++;
24 return aim_callhandler(sess, conn, family, (unsigned short) 0xffff);
27 int main (void)
29 aim_callhandler (0, 1, 0, 0);
30 exit (0);