summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_copy.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-05-27 22:41:45 +0000
committerEric Fiselier <eric@efcs.ca>2016-05-27 22:41:45 +0000
commit38e229f9092e30f6d7f886147d6de29c0bf9e6b5 (patch)
treef68e97b6d556bc8314c6e2511cca474db8a29f98 /libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_copy.pass.cpp
parent88cec7f7c071b328c5f926f1e41473ec24616394 (diff)
downloadbcm5719-llvm-38e229f9092e30f6d7f886147d6de29c0bf9e6b5.tar.gz
bcm5719-llvm-38e229f9092e30f6d7f886147d6de29c0bf9e6b5.zip
Guard testing of tuple extensions to make tests portable
llvm-svn: 271065
Diffstat (limited to 'libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_copy.pass.cpp')
-rw-r--r--libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_copy.pass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_copy.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_copy.pass.cpp
index 14e127e59ba..7c9f60cbf90 100644
--- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_copy.pass.cpp
+++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_copy.pass.cpp
@@ -52,6 +52,8 @@ int main()
assert(alloc_last::allocator_constructed);
assert(std::get<0>(t) == 2);
}
+// testing extensions
+#ifdef _LIBCPP_VERSION
{
typedef std::tuple<alloc_first, alloc_last> T;
T t0(2, 3);
@@ -75,4 +77,5 @@ int main()
assert(std::get<1>(t) == 2);
assert(std::get<2>(t) == 3);
}
+#endif
}
OpenPOWER on IntegriCloud