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 that <bitset> includes <string> and <iosfwd>
10 
11 #include <bitset>
12 
13 template <class> void test_typedef() {}
14 
15 int main(int, char**)
16 {
17   { // test for <string>
18     std::string s; ((void)s);
19   }
20   { // test for <iosfwd>
21     test_typedef<std::ios>();
22     test_typedef<std::wios>();
23     test_typedef<std::istream>();
24     test_typedef<std::ostream>();
25     test_typedef<std::iostream>();
26   }
27 
28   return 0;
29 }
30