xref: /llvm-project/libcxx/test/std/utilities/template.bitset/includes.pass.cpp (revision f4c1258d5633fcf06385ff3fd1f4bf57ab971964)
15a83710eSEric Fiselier //===----------------------------------------------------------------------===//
25a83710eSEric Fiselier //
357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
65a83710eSEric Fiselier //
75a83710eSEric Fiselier //===----------------------------------------------------------------------===//
85a83710eSEric Fiselier 
9e94d16e2SBilly Robert O'Neal III // test that <bitset> includes <string> and <iosfwd>
105a83710eSEric Fiselier 
115a83710eSEric Fiselier #include <bitset>
125a83710eSEric Fiselier 
13*7fc6a556SMarshall Clow #include "test_macros.h"
14*7fc6a556SMarshall Clow 
test_typedef()155750a3faSEric Fiselier template <class> void test_typedef() {}
165a83710eSEric Fiselier 
main(int,char **)172df59c50SJF Bastien int main(int, char**)
185a83710eSEric Fiselier {
195750a3faSEric Fiselier   { // test for <string>
205750a3faSEric Fiselier     std::string s; ((void)s);
215750a3faSEric Fiselier   }
225750a3faSEric Fiselier   { // test for <iosfwd>
235750a3faSEric Fiselier     test_typedef<std::ios>();
245750a3faSEric Fiselier     test_typedef<std::istream>();
255750a3faSEric Fiselier     test_typedef<std::ostream>();
265750a3faSEric Fiselier     test_typedef<std::iostream>();
275750a3faSEric Fiselier   }
282df59c50SJF Bastien 
292df59c50SJF Bastien   return 0;
305a83710eSEric Fiselier }
31