| //===----------------------------------------------------------------------===// |
| // |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| // |
| //===----------------------------------------------------------------------===// |
| // |
| // WARNING: This test was generated by generate_header_inclusion_tests.py |
| // and should not be edited manually. |
| // |
| // clang-format off |
| |
| // UNSUPPORTED: libcpp-has-no-localization |
| |
| // <iostream> |
| |
| // Test that <iostream> includes all the other headers it's supposed to. |
| |
| #include <iostream> |
| #include "test_macros.h" |
| |
| #if !defined(_LIBCPP_IOSTREAM) |
| # error "<iostream> was expected to define _LIBCPP_IOSTREAM" |
| #endif |
| #if !defined(_LIBCPP_IOS) |
| # error "<iostream> should include <ios> in C++03 and later" |
| #endif |
| #if !defined(_LIBCPP_ISTREAM) |
| # error "<iostream> should include <istream> in C++03 and later" |
| #endif |
| #if !defined(_LIBCPP_OSTREAM) |
| # error "<iostream> should include <ostream> in C++03 and later" |
| #endif |
| #if !defined(_LIBCPP_STREAMBUF) |
| # error "<iostream> should include <streambuf> in C++03 and later" |
| #endif |