blob: dab57ef4806a07b17ce03f159b53f9eaa37a6314 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* { dg-do run } */
/* { dg-require-effective-target sync_char_short } */
/* This testcase failed on s390 because no compare instruction for
the check of FLAG was emitted. */
unsigned short int count = 0;
int flag = 1;
extern void abort (void);
extern void exit (int);
int
main ()
{
__sync_add_and_fetch (&count, -1);
if (!flag)
abort ();
exit (0);
}
|