xref: /llvm-project/libcxx/test/libcxx/utilities/template.bitset/includes.pass.cpp (revision b9a2658a3e8bd13b0f9e7a8a440832a95b377216)
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 // test that <bitset> includes <string>, <stdexcept> and <iosfwd>
10 
11 // XFAIL: FROZEN-CXX03-HEADERS-FIXME
12 
13 #include <bitset>
14 
15 #include "test_macros.h"
16 
17 #ifndef _LIBCPP_STRING
18 #error <string> has not been included
19 #endif
20 
21 #ifndef _LIBCPP_STDEXCEPT
22 #error <stdexcept> has not been included
23 #endif
24 
25 #ifndef _LIBCPP_IOSFWD
26 #error <iosfwd> has not been included
27 #endif
28 
29 int main(int, char**)
30 {
31 
32   return 0;
33 }
34