Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Howard Hinnant | 412dbeb | 2010-11-16 22:09:02 +0000 | [diff] [blame] | 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
Billy Robert O'Neal III | e94d16e | 2018-08-08 00:43:38 +0000 | [diff] [blame] | 10 | // test that <bitset> includes <string> and <iosfwd> |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 11 | |
| 12 | #include <bitset> |
| 13 | |
Eric Fiselier | 5750a3f | 2017-05-12 01:44:51 +0000 | [diff] [blame] | 14 | template <class> void test_typedef() {} |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 15 | |
| 16 | int main() |
| 17 | { |
Eric Fiselier | 5750a3f | 2017-05-12 01:44:51 +0000 | [diff] [blame] | 18 | { // test for <string> |
| 19 | std::string s; ((void)s); |
| 20 | } |
Eric Fiselier | 5750a3f | 2017-05-12 01:44:51 +0000 | [diff] [blame] | 21 | { // 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 Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 28 | } |