blob: 43d9e08b66ac3ee7fe3cbfe0346628d3aac31a22 [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
Marshall Clow7fc6a552019-05-31 18:35:30 +000013#include "test_macros.h"
14
Eric Fiselier5750a3f2017-05-12 01:44:51 +000015template <class> void test_typedef() {}
Howard Hinnant94b2dd02010-08-22 00:59:46 +000016
JF Bastien2df59c52019-02-04 20:31:13 +000017int main(int, char**)
Howard Hinnant94b2dd02010-08-22 00:59:46 +000018{
Eric Fiselier5750a3f2017-05-12 01:44:51 +000019 { // test for <string>
20 std::string s; ((void)s);
21 }
Eric Fiselier5750a3f2017-05-12 01:44:51 +000022 { // test for <iosfwd>
23 test_typedef<std::ios>();
24 test_typedef<std::wios>();
25 test_typedef<std::istream>();
26 test_typedef<std::ostream>();
27 test_typedef<std::iostream>();
28 }
JF Bastien2df59c52019-02-04 20:31:13 +000029
30 return 0;
Howard Hinnant94b2dd02010-08-22 00:59:46 +000031}