diff options
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/stringstream.cc')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/stringstream.cc | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/27_io/stringstream.cc b/libstdc++-v3/testsuite/27_io/stringstream.cc index cb9e39d9588..a9778952d90 100644 --- a/libstdc++-v3/testsuite/27_io/stringstream.cc +++ b/libstdc++-v3/testsuite/27_io/stringstream.cc @@ -1,6 +1,6 @@ // 2002-07-25 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2002 Free Software Foundation, Inc. +// Copyright (C) 2002, 2003 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -50,13 +50,32 @@ void test01() namespace test { using namespace std; + using __gnu_cxx_test::pod_char; typedef short type_t; template class basic_stringstream<type_t, char_traits<type_t> >; - template class basic_stringstream<gnu_char, char_traits<gnu_char> >; + template class basic_stringstream<pod_char, char_traits<pod_char> >; } // test +// libstdc++/9826 +void test02() +{ + using namespace std; + using __gnu_cxx_test::pod_char; + + basic_stringstream<pod_char, char_traits<pod_char> > sstr; + // 1 + basic_string<pod_char, char_traits<pod_char> > str; + sstr >> str; + // 2 + pod_char* chr; + sstr >> chr; + // 3 + sstr >> ws; +} + int main() { test01(); + test02(); return 0; } |