Fix typo
[official-gcc.git] / gcc / testsuite / gcc.dg / 20010423-1.c
blob06af789ba53e14127784c86de48aa6a6d25cfce0
1 /* { dg-do compile { target ia64-*-* } } */
2 /* { dg-options "-O2" } */
4 int __sync_fetch_and_add_si (int *, int);
6 inline unsigned int
7 bar (volatile unsigned int *mem, unsigned int val)
9 return __sync_fetch_and_add_si((int *)mem, (int)val);
12 volatile unsigned int x;
14 void foo (unsigned short *a)
16 *a = bar (&x, 1) + 1;