PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49696.c
blob8e5a018fc02a4a59935edc2c08fce1564d89d627
1 /* { dg-require-effective-target sync_char_short } */
3 /* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
5 void
6 foo (short *x)
8 __sync_val_compare_and_swap (x, 1, 0);
9 __sync_bool_compare_and_swap (x, 1, 0);
10 __sync_lock_test_and_set (x, 0);
12 __sync_fetch_and_add (x, 0);
13 __sync_fetch_and_add (x, 0);
14 __sync_fetch_and_add (x, 0);
15 __sync_fetch_and_sub (x, 0);
16 __sync_fetch_and_and (x, 0);
17 __sync_fetch_and_or (x, 0);
18 __sync_fetch_and_xor (x, 0);
19 __sync_fetch_and_nand (x, 0);
21 __sync_add_and_fetch (x, 0);
22 __sync_add_and_fetch (x, 0);
23 __sync_add_and_fetch (x, 0);
24 __sync_sub_and_fetch (x, 0);
25 __sync_and_and_fetch (x, 0);
26 __sync_or_and_fetch (x, 0);
27 __sync_xor_and_fetch (x, 0);
28 __sync_nand_and_fetch (x, 0);