Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-stdatomic-2.c
blobd746b5ce48f91a8dae5a608530e7014c89b76819
1 /* Test stdatomic.h header contents. Test that ATOMIC_*_LOCK_FREE
2 macros can be used in an #if directive (DR#458). */
3 /* { dg-do preprocess } */
4 /* { dg-options "-std=c11 -pedantic-errors" } */
6 #include <stdatomic.h>
8 #if ATOMIC_BOOL_LOCK_FREE
9 #endif
10 #if ATOMIC_CHAR_LOCK_FREE
11 #endif
12 #if ATOMIC_CHAR16_T_LOCK_FREE
13 #endif
14 #if ATOMIC_CHAR32_T_LOCK_FREE
15 #endif
16 #if ATOMIC_WCHAR_T_LOCK_FREE
17 #endif
18 #if ATOMIC_SHORT_LOCK_FREE
19 #endif
20 #if ATOMIC_INT_LOCK_FREE
21 #endif
22 #if ATOMIC_LONG_LOCK_FREE
23 #endif
24 #if ATOMIC_LLONG_LOCK_FREE
25 #endif
26 #if ATOMIC_POINTER_LOCK_FREE
27 #endif