Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
Chandler Carruth | 57b08b0 | 2019-01-19 10:56:40 +0000 | [diff] [blame^] | 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 |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
Billy Robert O'Neal III | e94d16e | 2018-08-08 00:43:38 +0000 | [diff] [blame] | 9 | // test that <bitset> includes <string> and <iosfwd> |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 10 | |
| 11 | #include <bitset> |
| 12 | |
Eric Fiselier | 5750a3f | 2017-05-12 01:44:51 +0000 | [diff] [blame] | 13 | template <class> void test_typedef() {} |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 14 | |
| 15 | int main() |
| 16 | { |
Eric Fiselier | 5750a3f | 2017-05-12 01:44:51 +0000 | [diff] [blame] | 17 | { // test for <string> |
| 18 | std::string s; ((void)s); |
| 19 | } |
Eric Fiselier | 5750a3f | 2017-05-12 01:44:51 +0000 | [diff] [blame] | 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 | } |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 27 | } |