summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/20_util/tuple
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-06-14 15:01:29 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-06-14 15:01:29 +0100
commit74755c6afcf45be8723e30f08b6e38ec105a636a (patch)
tree95c6dd5820822f26417358663c9ee419c55a7ba1 /libstdc++-v3/testsuite/20_util/tuple
parent75b5bc017bbeb83768564a3bd8128e382d327102 (diff)
downloadgcc-74755c6afcf45be8723e30f08b6e38ec105a636a.tar.gz
Define __cpp_lib_tuple_element_t in <tuple> not <utility>
* include/std/tuple (__cpp_lib_tuple_element_t): Move feature test macro from <utility> and change type to long. * include/std/utility (__cpp_lib_tuple_element_t): Remove. * testsuite/20_util/tuple/tuple_element_t.cc: Check for feature test macro. From-SVN: r261596
Diffstat (limited to 'libstdc++-v3/testsuite/20_util/tuple')
-rw-r--r--libstdc++-v3/testsuite/20_util/tuple/tuple_element_t.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/20_util/tuple/tuple_element_t.cc b/libstdc++-v3/testsuite/20_util/tuple/tuple_element_t.cc
index 8f7aa58d34e..6b1b7a54251 100644
--- a/libstdc++-v3/testsuite/20_util/tuple/tuple_element_t.cc
+++ b/libstdc++-v3/testsuite/20_util/tuple/tuple_element_t.cc
@@ -19,6 +19,12 @@
#include <tuple>
+#ifndef __cpp_lib_tuple_element_t
+# error "Feature-test macro for tuple_element_t missing"
+#elif __cpp_lib_tuple_element_t != 201402
+# error "Feature-test macro for tuple_element_t has wrong value"
+#endif
+
using namespace std;
struct foo