OSDN Git Service

2003-11-13 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Nov 2003 14:19:39 +0000 (14:19 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Nov 2003 14:19:39 +0000 (14:19 +0000)
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
Fix, closely following the testcase included in the PR.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73548 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc

index d66ca9c..782bdb3 100644 (file)
@@ -1,3 +1,11 @@
+2003-11-13  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
+       Fix, closely following the testcase included in the PR.
+       * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
+       * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
+       * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
+
 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
 
        * docs/html/17_intro/configury.html: XHTML tweak.
index 70788e3..c4e45fb 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   fb.pubimbue(loc);
   fb.pubsetbuf(0, 0);
   fb.open("tmp_11305-1", ios_base::out);
-  wfilebuf::int_type n1 = fb.sputc(L'e');
+  wfilebuf::int_type n1 = fb.sputc(0x20000000);
   wfilebuf* f = fb.close();
   
   VERIFY( n1 != wfilebuf::traits_type::eof() );
index 0e6297a..5e1d096 100644 (file)
@@ -32,8 +32,8 @@ void test02()
   fb.pubimbue(loc);
   fb.pubsetbuf(0, 0);
   fb.open("tmp_11305-2", ios_base::out);
-  wfilebuf::int_type n1 = fb.sputc(L'n');
-  wfilebuf::int_type n2 = fb.sputc(L'e');
+  wfilebuf::int_type n1 = fb.sputc(0x20000000);
+  wfilebuf::int_type n2 = fb.sputc(0x40000000);
   wfilebuf* f = fb.close();
   
   VERIFY( n1 != wfilebuf::traits_type::eof() );
index 9558393..02f8363 100644 (file)
@@ -31,7 +31,7 @@ void test03()
   locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
   fb.pubimbue(loc);
   fb.open("tmp_11305-3", ios_base::out);
-  wfilebuf::int_type n1 = fb.sputc(L'a');
+  wfilebuf::int_type n1 = fb.sputc(0x20000000);
   wfilebuf* f = fb.close();
        
   VERIFY( n1 != wfilebuf::traits_type::eof() );
index 7e6010d..3a04d81 100644 (file)
@@ -31,8 +31,8 @@ void test04()
   locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
   fb.pubimbue(loc);
   fb.open("tmp_11405-4", ios_base::out);
-  wfilebuf::int_type n1 = fb.sputc(L'i');
-  wfilebuf::int_type n2 = fb.sputc(L'a');
+  wfilebuf::int_type n1 = fb.sputc(0x20000000);
+  wfilebuf::int_type n2 = fb.sputc(0x40000000);
   wfilebuf* f = fb.close();
   
   VERIFY( n1 != wfilebuf::traits_type::eof() );