]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/version.cc
libstdc++: Remove dg-options "-std=gnu++23" from remaining tests
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 29_atomics / headers / stdatomic.h / version.cc
CommitLineData
d2f8208e
JW
1// { dg-do preprocess { target c++23 } }
2
7cc9022f
AA
3// <stdatomic.h> is not freestanding.
4// { dg-require-effective-target hosted }
5
d2f8208e
JW
6#include <version>
7
8#ifndef __cpp_lib_stdatomic_h
9# error "Feature test macro for stdatomic.h is missing in <version>"
10#elif __cpp_lib_stdatomic_h != 202011L
11# error "Feature test macro for stdatomic.h has wrong value in <version>"
12#endif