summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/21_strings/headers/cstring/version.cc
blob: 06735e86a767318ae4a4393d8ac4527d82eea76a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do compile { target c++26 } }
// { dg-add-options no_pch }

#include <cstring>

#ifndef __cpp_lib_freestanding_cstring
# error "Feature test macro for freestanding <cstring> is missing in <cstring>"
#elif __cpp_lib_freestanding_cstring < 202311L
# error "Feature test macro for freestanding <cstring> has wrong value in <cstring>"
#endif

#undef __cpp_lib_freestanding_cstring
#include <version>

#ifndef __cpp_lib_freestanding_cstring
# error "Feature test macro for freestanding <cstring> is missing in <version>"
#elif __cpp_lib_freestanding_cstring < 202311L
# error "Feature test macro for freestanding <cstring> has wrong value in <version>"
#endif