blob: c98b150e792aaaef9ab7d45584a3f1622c0672b1 [file] [log] [blame]
Howard Hinnant94b2dd02010-08-22 00:59:46 +00001//===----------------------------------------------------------------------===//
2//
Chandler Carruth57b08b02019-01-19 10:56:40 +00003// 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
Howard Hinnant94b2dd02010-08-22 00:59:46 +00006//
7//===----------------------------------------------------------------------===//
8
Billy Robert O'Neal IIIe94d16e2018-08-08 00:43:38 +00009// test that <bitset> includes <string> and <iosfwd>
Howard Hinnant94b2dd02010-08-22 00:59:46 +000010
11#include <bitset>
12
Eric Fiselier5750a3f2017-05-12 01:44:51 +000013template <class> void test_typedef() {}
Howard Hinnant94b2dd02010-08-22 00:59:46 +000014
15int main()
16{
Eric Fiselier5750a3f2017-05-12 01:44:51 +000017 { // test for <string>
18 std::string s; ((void)s);
19 }
Eric Fiselier5750a3f2017-05-12 01:44:51 +000020 { // 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 }
Howard Hinnant94b2dd02010-08-22 00:59:46 +000027}