blob: 58069c309ccfe91425d4c6dc11e9a3ac8cf8b35e [file] [log] [blame]
// PR c++/52215
// { dg-do compile }
enum E { ZERO };
int
main ()
{
E e = ZERO;
__atomic_compare_exchange_n (&e, &e, e, true, __ATOMIC_ACQ_REL,
__ATOMIC_RELAXED);
}