includes.pass.cpp 801 B

12345678910111213141516171819202122232425262728293031
  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. // test that <bitset> includes <string> and <iosfwd>
  9. #include <bitset>
  10. #include "test_macros.h"
  11. template <class> void test_typedef() {}
  12. int main(int, char**)
  13. {
  14. { // test for <string>
  15. std::string s; ((void)s);
  16. }
  17. { // test for <iosfwd>
  18. test_typedef<std::ios>();
  19. test_typedef<std::wios>();
  20. test_typedef<std::istream>();
  21. test_typedef<std::ostream>();
  22. test_typedef<std::iostream>();
  23. }
  24. return 0;
  25. }