aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-stdatomic-2.c
blob: d746b5ce48f91a8dae5a608530e7014c89b76819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Test stdatomic.h header contents.  Test that ATOMIC_*_LOCK_FREE
   macros can be used in an #if directive (DR#458).  */
/* { dg-do preprocess } */
/* { dg-options "-std=c11 -pedantic-errors" } */

#include <stdatomic.h>

#if ATOMIC_BOOL_LOCK_FREE
#endif
#if ATOMIC_CHAR_LOCK_FREE
#endif
#if ATOMIC_CHAR16_T_LOCK_FREE
#endif
#if ATOMIC_CHAR32_T_LOCK_FREE
#endif
#if ATOMIC_WCHAR_T_LOCK_FREE
#endif
#if ATOMIC_SHORT_LOCK_FREE
#endif
#if ATOMIC_INT_LOCK_FREE
#endif
#if ATOMIC_LONG_LOCK_FREE
#endif
#if ATOMIC_LLONG_LOCK_FREE
#endif
#if ATOMIC_POINTER_LOCK_FREE
#endif