summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr60689.c
blob: 9475bd835c6f579bb1502e95287587ec260f7fda (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c++/60689 */
/* { dg-do compile } */

struct S { char x[9]; };

void
foo (struct S *x, struct S *y, struct S *z)
{
  __atomic_exchange (x, y, z, __ATOMIC_SEQ_CST);
}