blob: 021ca28e63e223b6bb08eab59924a7b0a9f3aeed [file] [log] [blame]
Howard Hinnant94b2dd02010-08-22 00:59:46 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
Howard Hinnant412dbeb2010-11-16 22:09:02 +00005// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
Howard Hinnant94b2dd02010-08-22 00:59:46 +00007//
8//===----------------------------------------------------------------------===//
9
Billy Robert O'Neal IIIe94d16e2018-08-08 00:43:38 +000010// test that <bitset> includes <string> and <iosfwd>
Howard Hinnant94b2dd02010-08-22 00:59:46 +000011
12#include <bitset>
13
Eric Fiselier5750a3f2017-05-12 01:44:51 +000014template <class> void test_typedef() {}
Howard Hinnant94b2dd02010-08-22 00:59:46 +000015
16int main()
17{
Eric Fiselier5750a3f2017-05-12 01:44:51 +000018 { // test for <string>
19 std::string s; ((void)s);
20 }
Eric Fiselier5750a3f2017-05-12 01:44:51 +000021 { // test for <iosfwd>
22 test_typedef<std::ios>();
23 test_typedef<std::wios>();
24 test_typedef<std::istream>();
25 test_typedef<std::ostream>();
26 test_typedef<std::iostream>();
27 }
Howard Hinnant94b2dd02010-08-22 00:59:46 +000028}