[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr62024.c
blob79a0b791f05218c91d8dc9d88ba06b643c357280
1 /* PR c/62024 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu11 -Wpedantic" } */
4 /* { dg-require-effective-target sync_char_short } */
6 int *p;
7 _Static_assert (__atomic_always_lock_free (1, p), ""); /* { dg-warning "is not an integer constant" } */
8 _Static_assert (__atomic_always_lock_free (1, 0), ""); /* { dg-warning "is not an integer constant" } */