1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // test size_t count() const;
10 
11 #include <bitset>
12 #include <cassert>
13 
14 #include "test_macros.h"
15 
16 template <std::size_t N>
test_size()17 void test_size()
18 {
19     const std::bitset<N> v;
20     assert(v.size() == N);
21 }
22 
main(int,char **)23 int main(int, char**)
24 {
25     test_size<0>();
26     test_size<1>();
27     test_size<31>();
28     test_size<32>();
29     test_size<33>();
30     test_size<63>();
31     test_size<64>();
32     test_size<65>();
33     test_size<1000>();
34 
35   return 0;
36 }
37