OSDN Git Service

* gcc.gd/struct/wo_prof_global_var.c: Use uninitialized integer
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20061124-1.c
1 /* { dg-do run } */
2 /* { dg-require-effective-target sync_char_short } */
3
4 /* This testcase failed on s390 because no compare instruction for
5    the check of FLAG was emitted.  */
6
7 unsigned short int count = 0;
8 int flag = 1;
9
10 extern void abort (void);
11 extern void exit (int);
12
13 int
14 main ()
15 {
16   __sync_add_and_fetch (&count, -1);
17
18   if (!flag)
19     abort ();
20   exit (0);
21 }