Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/c11-stdatomic-2.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* 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