summaryrefslogtreecommitdiff
path: root/test/std/utilities/utility/exchange/exchange.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/utilities/utility/exchange/exchange.pass.cpp')
-rw-r--r--test/std/utilities/utility/exchange/exchange.pass.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/std/utilities/utility/exchange/exchange.pass.cpp b/test/std/utilities/utility/exchange/exchange.pass.cpp
index 620b4149d1d0..5ef0ac3b09f5 100644
--- a/test/std/utilities/utility/exchange/exchange.pass.cpp
+++ b/test/std/utilities/utility/exchange/exchange.pass.cpp
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// utilities
// exchange
@@ -17,7 +18,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
{
int v = 12;
assert ( std::exchange ( v, 23 ) == 12 );
@@ -27,7 +27,7 @@ int main()
assert ((std::exchange<int, float> ( v, {} )) == 67 );
assert ( v == 0 );
-
+
}
{
@@ -48,11 +48,9 @@ int main()
s3 = s2; // Dad
assert ( std::exchange ( s3, {} ) == s2 );
assert ( s3.size () == 0 );
-
+
s3 = s2; // Dad
assert ( std::exchange ( s3, "" ) == s2 );
assert ( s3.size () == 0 );
}
-
-#endif
}