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 | |
Marshall Clow | 7fc6a55 | 2019-05-31 18:35:30 +0000 | [diff] [blame] | 13 | #include "test_macros.h" |
| 14 | |
Eric Fiselier | 5750a3f | 2017-05-12 01:44:51 +0000 | [diff] [blame] | 15 | template <class> void test_typedef() {} |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 16 | |
JF Bastien | 2df59c5 | 2019-02-04 20:31:13 +0000 | [diff] [blame] | 17 | int main(int, char**) |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 18 | { |
Eric Fiselier | 5750a3f | 2017-05-12 01:44:51 +0000 | [diff] [blame] | 19 | { // test for <string> |
| 20 | std::string s; ((void)s); |
| 21 | } |
Eric Fiselier | 5750a3f | 2017-05-12 01:44:51 +0000 | [diff] [blame] | 22 | { // 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 Bastien | 2df59c5 | 2019-02-04 20:31:13 +0000 | [diff] [blame] | 29 | |
| 30 | return 0; |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 31 | } |