]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
11305-1: Fix, closely following the testcase included in the PR.
authorPaolo Carlini <pcarlini@suse.de>
Thu, 13 Nov 2003 14:19:39 +0000 (14:19 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 13 Nov 2003 14:19:39 +0000 (14:19 +0000)
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.

From-SVN: r73548

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 d66ca9c94130f7eb59d9579401b60ff22b441dc9..782bdb37d1e8460c2acf50f315ced3f79b8914f7 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 70788e31aaa319486bc6b190916c090709510225..c4e45fb9add054ae083312ef77170d3cfdd8de31 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 0e6297a0adda4934195f8c5a66bffe26baddc0dc..5e1d0968774d3373bc3468c87095b6fa360bf46d 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 9558393d4846d80e21d2eedb43a772f05ac280ca..02f8363d7d6e02da889bec29313526bdfa82dcc2 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 7e6010d57378fda3cead38ca43bb5efc08228d3b..3a04d81daaf6be11f50d9fd42a590b98152de6f3 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() );