diff options
author | Eric Fiselier <eric@efcs.ca> | 2014-12-20 01:40:03 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2014-12-20 01:40:03 +0000 |
commit | 5a83710e371fe68a06e6e3876c6a2c8b820a8976 (patch) | |
tree | afde4c82ad6704681781c5cd49baa3fbd05c85db /libcxx/test/utilities/template.bitset/bitset.members/set_one.pass.cpp | |
parent | f11e8eab527fba316c64112f6e05de1a79693a3e (diff) | |
download | bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.tar.gz bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.zip |
Move test into test/std subdirectory.
llvm-svn: 224658
Diffstat (limited to 'libcxx/test/utilities/template.bitset/bitset.members/set_one.pass.cpp')
-rw-r--r-- | libcxx/test/utilities/template.bitset/bitset.members/set_one.pass.cpp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/libcxx/test/utilities/template.bitset/bitset.members/set_one.pass.cpp b/libcxx/test/utilities/template.bitset/bitset.members/set_one.pass.cpp deleted file mode 100644 index 116eaf3f46e..00000000000 --- a/libcxx/test/utilities/template.bitset/bitset.members/set_one.pass.cpp +++ /dev/null @@ -1,52 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// test bitset<N>& set(size_t pos, bool val = true); - -#include <bitset> -#include <cassert> - -template <std::size_t N> -void test_set_one() -{ - std::bitset<N> v; - try - { - v.set(50); - if (50 >= v.size()) - assert(false); - assert(v[50]); - } - catch (std::out_of_range&) - { - } - try - { - v.set(50, false); - if (50 >= v.size()) - assert(false); - assert(!v[50]); - } - catch (std::out_of_range&) - { - } -} - -int main() -{ - test_set_one<0>(); - test_set_one<1>(); - test_set_one<31>(); - test_set_one<32>(); - test_set_one<33>(); - test_set_one<63>(); - test_set_one<64>(); - test_set_one<65>(); - test_set_one<1000>(); -} |