summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/20_util/function_objects/invoke/version.cc
blob: 2dc71aea504f128855a2b70e9d2eb24ac89856cb (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++17 } }

#include <version>

#ifndef __cpp_lib_invoke
# error Feature-test macro for invoke is missing in <version>
#elif __cpp_lib_invoke < 201411L
# error Feature-test macro for invoke has the wrong value in <version>
#endif

#if __cplusplus > 202002L
#ifndef __cpp_lib_invoke_r
# error Feature-test macro for invoke_r is missing in <version>
#elif __cpp_lib_invoke_r < 202106L
# error Feature-test macro for invoke_r has the wrong value in <version>
#endif
#elif defined __cpp_lib_invoke_r
# error __cpp_lib_invoke_r is defined in <version> before C++23
#endif