Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / utilities / template.bitset / bitset.hash / enabled_hash.pass.cpp
blob0e34a5f97897b2adcd9fad84c2a7267a3034b1df
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 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03
11 // <bitset>
13 // Test that <bitset> provides all of the arithmetic, enum, and pointer
14 // hash specializations.
16 #include <bitset>
18 #include "poisoned_hash_helper.h"
20 #include "test_macros.h"
22 int main(int, char**) {
23 test_library_hash_specializations_available();
25 test_hash_enabled_for_type<std::bitset<0> >();
26 test_hash_enabled_for_type<std::bitset<1> >();
27 test_hash_enabled_for_type<std::bitset<1024> >();
28 test_hash_enabled_for_type<std::bitset<100000> >();
31 return 0;