1 //===----------------------------------------------------------------------===// 2 // 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 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // WARNING: This test was generated by generate_header_inclusion_tests.py 10 // and should not be edited manually. 11 // 12 // clang-format off 13 14 // UNSUPPORTED: no-localization 15 16 // <iostream> 17 18 // Test that <iostream> includes all the other headers it's supposed to. 19 20 #include <iostream> 21 #include "test_macros.h" 22 23 #if !defined(_LIBCPP_IOSTREAM) 24 # error "<iostream> was expected to define _LIBCPP_IOSTREAM" 25 #endif 26 #if !defined(_LIBCPP_IOS) 27 # error "<iostream> should include <ios> in C++03 and later" 28 #endif 29 #if !defined(_LIBCPP_ISTREAM) 30 # error "<iostream> should include <istream> in C++03 and later" 31 #endif 32 #if !defined(_LIBCPP_OSTREAM) 33 # error "<iostream> should include <ostream> in C++03 and later" 34 #endif 35 #if !defined(_LIBCPP_STREAMBUF) 36 # error "<iostream> should include <streambuf> in C++03 and later" 37 #endif 38