aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/27_io/basic_ostream/sentry
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2005-04-15 02:06:26 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2005-04-15 02:06:26 +0000
commit821503dbd65d1165364328c4568ea457eea06a1d (patch)
treed277bbc9b90693315d38e9618610929caedcdec3 /libstdc++-v3/testsuite/27_io/basic_ostream/sentry
parenta68bdb0b8d55eada5a23b2dde0b77d4c6667d999 (diff)
downloadgcc-821503dbd65d1165364328c4568ea457eea06a1d.zip
gcc-821503dbd65d1165364328c4568ea457eea06a1d.tar.gz
gcc-821503dbd65d1165364328c4568ea457eea06a1d.tar.bz2
pod_char_traits.h (__gnu_cxx::character): Add char_type.
2005-04-14 Benjamin Kosnik <bkoz@redhat.com> * include/ext/pod_char_traits.h (__gnu_cxx::character): Add char_type. (character::to): New. (character::from): New. (operator==): Add state parameter. (operator<): Same. (char_traits::copy): Use std::copy. (char_traits::assign): Use std::fill_n. (char_traits::to_char_type): Use character::from. (char_traits::to_int_type): Use character::to. * testsuite/testsuite_character.h (__gnu_test::character): Remove. (__gnu_test::conversion_state): Remove. (__gnu_test::pod_char): Remove. (pod_char): New typedef. (pod_uchar): New typedef. (pod_ushort): New typedef. * testsuite/testsuite_character.cc: Fixups. * testsuite/21_strings/basic_string/inserters_extractors/pod/ 10081-in.cc: Same. * testsuite/21_strings/basic_string/inserters_extractors/pod/ 10081-out.cc: Same. * testsuite/22_locale/numpunct/members/pod/1.cc: Same. * testsuite/22_locale/numpunct/members/pod/2.cc: Same. * testsuite/27_io/basic_filebuf/close/12790-1.cc: Same. * testsuite/27_io/basic_filebuf/open/12790-1.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc: Same. * testsuite/27_io/basic_ios/imbue/14072.cc: Same. * testsuite/27_io/basic_istream/extractors_arithmetic/pod/ 3983-1.cc: Same. * testsuite/27_io/basic_istream/extractors_character/pod/ 3983-2.cc: Same. * testsuite/27_io/basic_istream/extractors_other/pod/3983-3.cc: Same. * testsuite/27_io/basic_istream/sentry/pod/1.cc: Same. * testsuite/27_io/basic_ostream/sentry/pod/1.cc: Same. From-SVN: r98165
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/basic_ostream/sentry')
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/sentry/pod/1.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/pod/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/pod/1.cc
index d83293f..555c736 100644
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/pod/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/pod/1.cc
@@ -38,10 +38,10 @@
void test01()
{
using namespace std;
- using __gnu_test::pod_type;
- typedef basic_string<pod_type> string_type;
- typedef basic_stringbuf<pod_type> stringbuf_type;
- typedef basic_ostream<pod_type> ostream_type;
+ using __gnu_test::pod_ushort;
+ typedef basic_string<pod_ushort> string_type;
+ typedef basic_stringbuf<pod_ushort> stringbuf_type;
+ typedef basic_ostream<pod_ushort> ostream_type;
bool test __attribute__((unused)) = true;
@@ -69,7 +69,7 @@ void test01()
}
// imbued.
- const std::locale loc(std::locale::classic(), new std::ctype<pod_type>);
+ const std::locale loc(std::locale::classic(), new std::ctype<pod_ushort>);
ostr01.imbue(loc);
try
{
@@ -114,12 +114,12 @@ void test01()
#if !__GXX_WEAK__
// Explicitly instantiate for systems with no COMDAT or weak support.
template
- std::basic_string<__gnu_test::pod_type>::size_type
- std::basic_string<__gnu_test::pod_type>::_Rep::_S_max_size;
+ std::basic_string<__gnu_test::pod_ushort>::size_type
+ std::basic_string<__gnu_test::pod_ushort>::_Rep::_S_max_size;
template
- __gnu_test::pod_type
- std::basic_string<__gnu_test::pod_type>::_Rep::_S_terminal;
+ __gnu_test::pod_ushort
+ std::basic_string<__gnu_test::pod_ushort>::_Rep::_S_terminal;
#endif
int main()