* gcc.dg/20061124-1.c: Add exit() function prototype.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20061124-1.c
blobdab57ef4806a07b17ce03f159b53f9eaa37a6314
1 /* { dg-do run } */
2 /* { dg-require-effective-target sync_char_short } */
4 /* This testcase failed on s390 because no compare instruction for
5 the check of FLAG was emitted. */
7 unsigned short int count = 0;
8 int flag = 1;
10 extern void abort (void);
11 extern void exit (int);
13 int
14 main ()
16 __sync_add_and_fetch (&count, -1);
18 if (!flag)
19 abort ();
20 exit (0);