diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2012-07-07 17:04:52 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2012-07-07 17:04:52 +0000 |
| commit | eeac9fcfb723bc5ea98b3857536b7f938660d762 (patch) | |
| tree | aa86db2a6267b96d5a28d1b554d0d9e4961db535 /libcxx/test/utilities/template.bitset | |
| parent | 61d926859585db6acc38b79776ddb03c90a664d4 (diff) | |
| download | bcm5719-llvm-eeac9fcfb723bc5ea98b3857536b7f938660d762.tar.gz bcm5719-llvm-eeac9fcfb723bc5ea98b3857536b7f938660d762.zip | |
Apply constexpr to <bitset>.
llvm-svn: 159899
Diffstat (limited to 'libcxx/test/utilities/template.bitset')
3 files changed, 5 insertions, 2 deletions
diff --git a/libcxx/test/utilities/template.bitset/bitset.cons/default.pass.cpp b/libcxx/test/utilities/template.bitset/bitset.cons/default.pass.cpp index 5d743c6bb63..bd5ca7e08b2 100644 --- a/libcxx/test/utilities/template.bitset/bitset.cons/default.pass.cpp +++ b/libcxx/test/utilities/template.bitset/bitset.cons/default.pass.cpp @@ -18,7 +18,7 @@ template <std::size_t N> void test_default_ctor() { { - std::bitset<N> v1; + _LIBCPP_CONSTEXPR std::bitset<N> v1; assert(v1.size() == N); for (std::size_t i = 0; i < N; ++i) assert(v1[i] == false); diff --git a/libcxx/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp b/libcxx/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp index c849937dae5..023fedc2583 100644 --- a/libcxx/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp +++ b/libcxx/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp @@ -18,7 +18,7 @@ template <std::size_t N> void test_val_ctor() { { - std::bitset<N> v(0xAAAAAAAAAAAAAAAAULL); + _LIBCPP_CONSTEXPR std::bitset<N> v(0xAAAAAAAAAAAAAAAAULL); assert(v.size() == N); unsigned M = std::min<std::size_t>(N, 64); for (std::size_t i = 0; i < M; ++i) diff --git a/libcxx/test/utilities/template.bitset/bitset.members/reset_one.pass.cpp b/libcxx/test/utilities/template.bitset/bitset.members/reset_one.pass.cpp index 2b9b097f90a..ebaa9e7a8d7 100644 --- a/libcxx/test/utilities/template.bitset/bitset.members/reset_one.pass.cpp +++ b/libcxx/test/utilities/template.bitset/bitset.members/reset_one.pass.cpp @@ -12,6 +12,9 @@ #include <bitset> #include <cassert> +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> void test_reset_one() { |

