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

void
foo (int *p, int *q, int *r)
{
  __atomic_compare_exchange (p, q, r, 0, 0, -1);	/* { dg-warning "invalid memory model argument 6" } */
  /* { dg-warning "unknown architecture specifi" "" { target *-*-* } .-1 } */
  /* { dg-warning "failure memory model cannot be stronger than success memory model" "" { target *-*-* } .-2 } */
}