diff options
Diffstat (limited to 'libcxx/test/std/utilities/template.bitset/bitset.operators')
5 files changed, 15 insertions, 5 deletions
diff --git a/libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp index af69d3951b7..21d5d08058c 100644 --- a/libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp +++ b/libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp @@ -39,7 +39,7 @@ void test_op_and() assert((v1 & v2) == (v3 &= v2)); } -int main() +int main(int, char**) { test_op_and<0>(); test_op_and<1>(); @@ -50,4 +50,6 @@ int main() test_op_and<64>(); test_op_and<65>(); test_op_and<1000>(); + + return 0; } diff --git a/libcxx/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp index 8d9b2bdfb29..4a71385a941 100644 --- a/libcxx/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp +++ b/libcxx/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp @@ -39,7 +39,7 @@ void test_op_not() assert((v1 ^ v2) == (v3 ^= v2)); } -int main() +int main(int, char**) { test_op_not<0>(); test_op_not<1>(); @@ -50,4 +50,6 @@ int main() test_op_not<64>(); test_op_not<65>(); test_op_not<1000>(); + + return 0; } diff --git a/libcxx/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp index c2cada15ea1..bc4847c19e4 100644 --- a/libcxx/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp +++ b/libcxx/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp @@ -39,7 +39,7 @@ void test_op_or() assert((v1 | v2) == (v3 |= v2)); } -int main() +int main(int, char**) { test_op_or<0>(); test_op_or<1>(); @@ -50,4 +50,6 @@ int main() test_op_or<64>(); test_op_or<65>(); test_op_or<1000>(); + + return 0; } diff --git a/libcxx/test/std/utilities/template.bitset/bitset.operators/stream_in.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.operators/stream_in.pass.cpp index 714fcd3ed2f..9abe19c7c87 100644 --- a/libcxx/test/std/utilities/template.bitset/bitset.operators/stream_in.pass.cpp +++ b/libcxx/test/std/utilities/template.bitset/bitset.operators/stream_in.pass.cpp @@ -16,10 +16,12 @@ #include <sstream> #include <cassert> -int main() +int main(int, char**) { std::istringstream in("01011010"); std::bitset<8> b; in >> b; assert(b.to_ulong() == 0x5A); + + return 0; } diff --git a/libcxx/test/std/utilities/template.bitset/bitset.operators/stream_out.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.operators/stream_out.pass.cpp index 06a36604ac4..2c4ce1e4881 100644 --- a/libcxx/test/std/utilities/template.bitset/bitset.operators/stream_out.pass.cpp +++ b/libcxx/test/std/utilities/template.bitset/bitset.operators/stream_out.pass.cpp @@ -16,10 +16,12 @@ #include <sstream> #include <cassert> -int main() +int main(int, char**) { std::ostringstream os; std::bitset<8> b(0x5A); os << b; assert(os.str() == "01011010"); + + return 0; } |