diff options
| author | Eric Fiselier <eric@efcs.ca> | 2015-02-05 20:28:37 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2015-02-05 20:28:37 +0000 |
| commit | c281a7a19fbbf229334f595e879e0fed42613264 (patch) | |
| tree | d4eaeac1d793795b29d0578203c694b19b7b04b1 /libcxx/test/std/utilities/function.objects/bitwise.operations | |
| parent | d40bb5353dd91dd3b6c886495b20dd08bf3fe7d2 (diff) | |
| download | bcm5719-llvm-c281a7a19fbbf229334f595e879e0fed42613264.tar.gz bcm5719-llvm-c281a7a19fbbf229334f595e879e0fed42613264.zip | |
Get tests running with warnings. Fix warnings in headers and tests
llvm-svn: 228344
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/bitwise.operations')
| -rw-r--r-- | libcxx/test/std/utilities/function.objects/bitwise.operations/bit_xor.pass.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/function.objects/bitwise.operations/bit_xor.pass.cpp b/libcxx/test/std/utilities/function.objects/bitwise.operations/bit_xor.pass.cpp index d8690aa8268..bbf2ce5baf1 100644 --- a/libcxx/test/std/utilities/function.objects/bitwise.operations/bit_xor.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/bitwise.operations/bit_xor.pass.cpp @@ -17,6 +17,7 @@ int main() { + { typedef std::bit_xor<int> F; const F f = F(); static_assert((std::is_same<int, F::first_argument_type>::value), "" ); @@ -27,9 +28,11 @@ int main() assert(f(0x58D3, 0xEA95) == 0xB246); assert(f(0x58D3, 0) == 0x58D3); assert(f(0xFFFF, 0x58D3) == 0xA72C); + } #if _LIBCPP_STD_VER > 11 + { typedef std::bit_xor<> F2; - const F2 f2 = F2(); + const F2 f = F2(); assert(f(0xEA95, 0xEA95) == 0); assert(f(0xEA95L, 0xEA95) == 0); assert(f(0xEA95, 0xEA95L) == 0); @@ -55,5 +58,6 @@ int main() constexpr int bar = std::bit_xor<> () (0x58D3L, 0xEA95); static_assert ( bar == 0xB246, "" ); + } #endif } |

