diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-07-08 21:06:38 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-07-08 21:06:38 +0000 |
commit | e0fe3d2e9680325f72a91ca18fd48d01b1016a67 (patch) | |
tree | 2374a842a0a75502d930428d3d88cd5842f93ebc /libcxx/test/utilities/utility | |
parent | a7b0e5ddf88ce3072f76f67a825a591b1c6809b6 (diff) | |
download | bcm5719-llvm-e0fe3d2e9680325f72a91ca18fd48d01b1016a67.tar.gz bcm5719-llvm-e0fe3d2e9680325f72a91ca18fd48d01b1016a67.zip |
War on tabs.
llvm-svn: 185865
Diffstat (limited to 'libcxx/test/utilities/utility')
-rw-r--r-- | libcxx/test/utilities/utility/exchange/exchange.pass.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/libcxx/test/utilities/utility/exchange/exchange.pass.cpp b/libcxx/test/utilities/utility/exchange/exchange.pass.cpp index b3603312ae4..f8b366ac209 100644 --- a/libcxx/test/utilities/utility/exchange/exchange.pass.cpp +++ b/libcxx/test/utilities/utility/exchange/exchange.pass.cpp @@ -18,30 +18,30 @@ int main() { #if _LIBCPP_STD_VER > 11 - { - int v = 12; - assert ( std::exchange ( v, 23 ) == 12 ); - assert ( v == 23 ); - assert ( std::exchange ( v, 67.2 ) == 23 ); - assert ( v = 67 ); - } + { + int v = 12; + assert ( std::exchange ( v, 23 ) == 12 ); + assert ( v == 23 ); + assert ( std::exchange ( v, 67.2 ) == 23 ); + assert ( v = 67 ); + } - { - bool b = false; - assert ( !std::exchange ( b, true )); - assert ( b ); - } + { + bool b = false; + assert ( !std::exchange ( b, true )); + assert ( b ); + } - { - const std::string s1 ( "Hi Mom!" ); - const std::string s2 ( "Yo Dad!" ); - std::string s3 = s1; // Mom - assert ( std::exchange ( s3, s2 ) == s1 ); - assert ( s3 == s2 ); - assert ( std::exchange ( s3, "Hi Mom!" ) == s2 ); - assert ( s3 == s1 ); - assert ( std::exchange ( s3, "" ) == s1 ); - assert ( s3.size () == 0 ); - } + { + const std::string s1 ( "Hi Mom!" ); + const std::string s2 ( "Yo Dad!" ); + std::string s3 = s1; // Mom + assert ( std::exchange ( s3, s2 ) == s1 ); + assert ( s3 == s2 ); + assert ( std::exchange ( s3, "Hi Mom!" ) == s2 ); + assert ( s3 == s1 ); + assert ( std::exchange ( s3, "" ) == s1 ); + assert ( s3.size () == 0 ); + } #endif } |