view gcc/testsuite/c-c++-common/pr83059.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* 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 } */
}