OSDN Git Service

Backported from mainline
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / 20021111-1.c
1 /* Origin: PR c/8467 */
2
3 extern void abort (void);
4 extern void exit (int);
5
6 int aim_callhandler(int sess, int conn, unsigned short family, unsigned short type);
7
8 int aim_callhandler(int sess, int conn, unsigned short family, unsigned short type)
9 {
10   static int i = 0;
11
12   if (!conn)
13     return 0;
14
15   if (type == 0xffff)
16     {
17       return 0;
18     }
19
20   if (i >= 1)
21     abort ();
22
23   i++;
24   return aim_callhandler(sess, conn, family, (unsigned short) 0xffff);
25 }
26
27 int main (void)
28 {
29   aim_callhandler (0, 1, 0, 0);
30   exit (0);
31 }