gcc/testsuite/c-c++-common/pr82112.c
raw| 1 | /* PR target/82112 */ |
| 2 | /* { dg-do compile } */ |
| 3 | |
| 4 | int c[10], d[10], e[10], f[10], g[10], h[10], i[10], j[10], k[10], l[10]; |
| 5 | |
| 6 | void |
| 7 | foo (void) |
| 8 | { |
| 9 | __atomic_load (c, d, __ATOMIC_ACQUIRE); |
| 10 | __atomic_store (e, f, __ATOMIC_SEQ_CST); |
| 11 | __atomic_exchange (g, h, i, __ATOMIC_RELAXED); |
| 12 | __atomic_compare_exchange (j, k, l, 1, __ATOMIC_RELAXED, __ATOMIC_RELAXED); |
| 13 | } |