PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr62024.C
blob5f0640ac12390707b45b6713522f7bf2514a7973
1 // PR c/62024
2 // { dg-do compile { target c++11 } }
3 // { dg-require-effective-target sync_char_short }
5 int *p;
6 static_assert (__atomic_always_lock_free (1, p), "");
7 static_assert (__atomic_always_lock_free (1, 0), "");