Home | History | Annotate | Download | only in template.bitset
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // test that <bitset> includes <string> and <iosfwd>
     11 
     12 #include <bitset>
     13 
     14 template <class> void test_typedef() {}
     15 
     16 int main()
     17 {
     18   { // test for <string>
     19     std::string s; ((void)s);
     20   }
     21   { // test for <iosfwd>
     22     test_typedef<std::ios>();
     23     test_typedef<std::wios>();
     24     test_typedef<std::istream>();
     25     test_typedef<std::ostream>();
     26     test_typedef<std::iostream>();
     27   }
     28 }
     29