diff options
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/istream.cc')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/istream.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/27_io/istream.cc b/libstdc++-v3/testsuite/27_io/istream.cc index ef88a39f727..6cec904eb67 100644 --- a/libstdc++-v3/testsuite/27_io/istream.cc +++ b/libstdc++-v3/testsuite/27_io/istream.cc @@ -31,17 +31,32 @@ // NB: This file is for testing istream with NO OTHER INCLUDES. #include <istream> +#include <testsuite_hooks.h> // { dg-do compile } +// libstdc++/7216 +void test01() +{ + // Check for required typedefs + typedef std::istream test_type; + typedef test_type::char_type char_type; + typedef test_type::traits_type traits_type; + typedef test_type::int_type int_type; + typedef test_type::pos_type pos_type; + typedef test_type::off_type off_type; +} + namespace test { using namespace std; typedef short type_t; template class basic_istream<type_t, char_traits<type_t> >; + template class basic_istream<gnu_char, char_traits<gnu_char> >; } // test int main() { + test01(); return 0; } |