brintos

brintos / llvm-project-archived public Read only

0
0
Text · 770 B · b58dac5 Raw
31 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// test that <bitset> includes <string> and <iosfwd>10 11#include <bitset>12 13#include "test_macros.h"14 15template <class> void test_typedef() {}16 17int main(int, char**)18{19  { // test for <string>20    std::string s; ((void)s);21  }22  { // test for <iosfwd>23    test_typedef<std::ios>();24    test_typedef<std::istream>();25    test_typedef<std::ostream>();26    test_typedef<std::iostream>();27  }28 29  return 0;30}31