comparison gcc/testsuite/c-c++-common/pr82112.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }