Debian Codegraph @

libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/version.cc

raw
1 // { dg-do preprocess { target c++23 } }
2 // { dg-add-options no_pch }
3
4 // <stdatomic.h> is not freestanding.
5 // { dg-require-effective-target hosted }
6
7 #include <version>
8
9 #ifndef __cpp_lib_stdatomic_h
10 # error "Feature test macro for stdatomic.h is missing in <version>"
11 #elif __cpp_lib_stdatomic_h != 202011L
12 # error "Feature test macro for stdatomic.h has wrong value in <version>"
13 #endif