1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // test size_t count() const; 11 12 #include <bitset> 13 #include <cassert> 14 15 template <std::size_t N> test_size()16void test_size() 17 { 18 const std::bitset<N> v; 19 assert(v.size() == N); 20 } 21 main()22int main() 23 { 24 test_size<0>(); 25 test_size<1>(); 26 test_size<31>(); 27 test_size<32>(); 28 test_size<33>(); 29 test_size<63>(); 30 test_size<64>(); 31 test_size<65>(); 32 test_size<1000>(); 33 } 34