Fix invalid UTF-8 in wchar_t tests.
2015-09-11 John Marino <gnugcc@marino.st> Jonathan Wakely <jwakely@redhat.com> PR libstdc++/67096 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Do not test code points above U+10FFFF. * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise. * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise. * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Likewise. * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Likewise. * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise. * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise. * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise. * testsuite/27_io/objects/wchar_t/10.cc: Likewise. * testsuite/27_io/objects/wchar_t/11.cc: Likewise. * testsuite/27_io/objects/wchar_t/12.cc: Likewise. * testsuite/27_io/objects/wchar_t/13.cc: Likewise. Co-Authored-By: Jonathan Wakely <jwakely@redhat.com> From-SVN: r227686
This commit is contained in:
parent
f12ddb6249
commit
1b741475ff
16 changed files with 50 additions and 115 deletions
|
@ -1,3 +1,24 @@
|
|||
2015-09-11 John Marino <gnugcc@marino.st>
|
||||
Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
PR libstdc++/67096
|
||||
* testsuite/22_locale/codecvt/in/wchar_t/4.cc: Do not test code points
|
||||
above U+10FFFF.
|
||||
* testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise.
|
||||
* testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise.
|
||||
* testsuite/22_locale/codecvt/length/wchar_t/4.cc: Likewise.
|
||||
* testsuite/22_locale/codecvt/out/wchar_t/4.cc: Likewise.
|
||||
* testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
|
||||
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: Likewise.
|
||||
* testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
|
||||
* testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: Likewise.
|
||||
* testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
|
||||
* testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
|
||||
* testsuite/27_io/objects/wchar_t/10.cc: Likewise.
|
||||
* testsuite/27_io/objects/wchar_t/11.cc: Likewise.
|
||||
* testsuite/27_io/objects/wchar_t/12.cc: Likewise.
|
||||
* testsuite/27_io/objects/wchar_t/13.cc: Likewise.
|
||||
|
||||
2015-09-11 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
PR libstdc++/64857
|
||||
|
|
|
@ -73,11 +73,7 @@ void test04()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const ext_type* efrom_next;
|
||||
const int_type i_lit[] = {
|
||||
|
@ -99,9 +95,7 @@ void test04()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
int esize = strlen(e_lit);
|
||||
|
|
|
@ -72,11 +72,7 @@ void test08()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const ext_type* efrom_next;
|
||||
const int_type i_lit[] = {
|
||||
|
@ -98,9 +94,7 @@ void test08()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
int esize = strlen(e_lit);
|
||||
|
|
|
@ -72,11 +72,7 @@ void test09()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const ext_type* efrom = e_lit;
|
||||
const ext_type* efrom_next;
|
||||
|
@ -99,9 +95,7 @@ void test09()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
int esize = strlen(e_lit);
|
||||
|
|
|
@ -68,11 +68,7 @@ void test04()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const int_type i_lit[] = {
|
||||
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
|
||||
|
@ -93,9 +89,7 @@ void test04()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
int esize = strlen(e_lit);
|
||||
|
|
|
@ -70,11 +70,7 @@ void test04()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const int_type i_lit[] = {
|
||||
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
|
||||
|
@ -95,9 +91,7 @@ void test04()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
const int_type* ifrom_next;
|
||||
|
|
|
@ -69,9 +69,7 @@ void test04()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
const int_type* ifrom_next;
|
||||
|
|
|
@ -57,11 +57,7 @@ void test01()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const wchar_t wstr[] = {
|
||||
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
|
||||
|
@ -82,9 +78,7 @@ void test01()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
const size_t clen = sizeof(cstr) / sizeof(cstr[0]);
|
||||
|
|
|
@ -59,11 +59,7 @@ void test01()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const wchar_t wstr[] = {
|
||||
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
|
||||
|
@ -84,9 +80,7 @@ void test01()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
const size_t clen = sizeof(cstr) / sizeof(cstr[0]);
|
||||
|
|
|
@ -53,11 +53,7 @@ void test01()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const wchar_t wstr[] = {
|
||||
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
|
||||
|
@ -78,9 +74,7 @@ void test01()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
const size_t clen = sizeof(cstr) / sizeof(cstr[0]);
|
||||
|
|
|
@ -53,11 +53,7 @@ void test02()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const wchar_t wstr[] = {
|
||||
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
|
||||
|
@ -78,9 +74,7 @@ void test02()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
const size_t clen = sizeof(cstr) / sizeof(cstr[0]);
|
||||
|
|
|
@ -53,11 +53,7 @@ void test03()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const wchar_t wstr[] = {
|
||||
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
|
||||
|
@ -78,9 +74,7 @@ void test03()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
const size_t clen = sizeof(cstr) / sizeof(cstr[0]);
|
||||
|
|
|
@ -57,11 +57,7 @@ void test10()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
size_t e_size = strlen(e_lit);
|
||||
|
||||
const wchar_t i_lit[] = {
|
||||
|
@ -83,9 +79,7 @@ void test10()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
size_t i_size = wcslen(i_lit);
|
||||
|
||||
|
|
|
@ -57,11 +57,7 @@ void test11()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
size_t e_size = strlen(e_lit);
|
||||
|
||||
const wchar_t i_lit[] = {
|
||||
|
@ -83,9 +79,7 @@ void test11()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
size_t i_size = wcslen(i_lit);
|
||||
|
||||
|
|
|
@ -62,11 +62,7 @@ void test12()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const wchar_t wstr[] = {
|
||||
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
|
||||
|
@ -87,9 +83,7 @@ void test12()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
const size_t clen = sizeof(cstr) / sizeof(cstr[0]);
|
||||
|
|
|
@ -61,11 +61,7 @@ void test13()
|
|||
"\xa0\x95\xe0\xa0\x96\xe0\xa0\x97\x1\x2\x4\x8\x10\x20@\xc2\x80"
|
||||
"\xc4\x80\xc8\x80\xd0\x80\xe0\xa0\x80\xe1\x80\x80\xe2\x80\x80"
|
||||
"\xe4\x80\x80\xe8\x80\x80\xf0\x90\x80\x80\xf0\xa0\x80\x80\xf1"
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80\xf8\x88\x80\x80"
|
||||
"\x80\xf8\x90\x80\x80\x80\xf8\xa0\x80\x80\x80\xf9\x80\x80\x80"
|
||||
"\x80\xfa\x80\x80\x80\x80\xfc\x84\x80\x80\x80\x80\xfc\x88\x80"
|
||||
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
|
||||
"\xfd\x80\x80\x80\x80\x80";
|
||||
"\x80\x80\x80\xf2\x80\x80\x80\xf4\x80\x80\x80";
|
||||
|
||||
const wchar_t wstr[] = {
|
||||
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
|
||||
|
@ -86,9 +82,7 @@ void test13()
|
|||
0x80c, 0x80d, 0x80e, 0x80f, 0x810, 0x811, 0x812, 0x813, 0x814,
|
||||
0x815, 0x816, 0x817, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, L'@',
|
||||
0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000,
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x200000, 0x400000,
|
||||
0x800000, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000,
|
||||
0x20000000, 0x40000000, 0x0
|
||||
0x10000, 0x20000, 0x40000, 0x80000, 0x100000, 0x0
|
||||
};
|
||||
|
||||
const size_t clen = sizeof(cstr) / sizeof(cstr[0]);
|
||||
|
|
Loading…
Add table
Reference in a new issue