mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 20:35:40 +08:00
[PATCH][libstdc++][Testsuite] isctype test fails for newlib.
libstdc++-v3/ 2015-02-02 Matthew Wahab <matthew.wahab@arm.com> PR libstdc++/64467 * testsuite/28_regex/testsuiteraits/char/isctype.cc (test01): Add newlib special case for '\n'. * test01estsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise. From-SVN: r220392
This commit is contained in:
parent
283b44f96a
commit
ff9eac2965
@ -1,3 +1,10 @@
|
|||||||
|
2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
|
||||||
|
|
||||||
|
PR libstdc++/64467
|
||||||
|
* testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
|
||||||
|
special case for '\n'.
|
||||||
|
* testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
|
||||||
|
|
||||||
2015-02-01 Jonathan Wakely <jwakely@redhat.com>
|
2015-02-01 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
* src/c++11/futex.cc: Do not define for gthr-single.h targets.
|
* src/c++11/futex.cc: Do not define for gthr-single.h targets.
|
||||||
|
@ -53,7 +53,13 @@ test01()
|
|||||||
VERIFY(!t.isctype('_', t.lookup_classname(range(digit))));
|
VERIFY(!t.isctype('_', t.lookup_classname(range(digit))));
|
||||||
VERIFY( t.isctype(' ', t.lookup_classname(range(blank))));
|
VERIFY( t.isctype(' ', t.lookup_classname(range(blank))));
|
||||||
VERIFY( t.isctype('\t', t.lookup_classname(range(blank))));
|
VERIFY( t.isctype('\t', t.lookup_classname(range(blank))));
|
||||||
|
#if defined (__NEWLIB__)
|
||||||
|
/* newlib includes '\n' in class 'blank'.
|
||||||
|
See https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00059.html. */
|
||||||
|
VERIFY( t.isctype('\n', t.lookup_classname(range(blank))));
|
||||||
|
#else
|
||||||
VERIFY(!t.isctype('\n', t.lookup_classname(range(blank))));
|
VERIFY(!t.isctype('\n', t.lookup_classname(range(blank))));
|
||||||
|
#endif
|
||||||
VERIFY( t.isctype('t', t.lookup_classname(range(upper), true)));
|
VERIFY( t.isctype('t', t.lookup_classname(range(upper), true)));
|
||||||
VERIFY( t.isctype('T', t.lookup_classname(range(lower), true)));
|
VERIFY( t.isctype('T', t.lookup_classname(range(lower), true)));
|
||||||
#undef range
|
#undef range
|
||||||
|
@ -50,7 +50,13 @@ test01()
|
|||||||
VERIFY(!t.isctype(L'_', t.lookup_classname(range(digit))));
|
VERIFY(!t.isctype(L'_', t.lookup_classname(range(digit))));
|
||||||
VERIFY( t.isctype(L' ', t.lookup_classname(range(blank))));
|
VERIFY( t.isctype(L' ', t.lookup_classname(range(blank))));
|
||||||
VERIFY( t.isctype(L'\t', t.lookup_classname(range(blank))));
|
VERIFY( t.isctype(L'\t', t.lookup_classname(range(blank))));
|
||||||
|
#if defined (__NEWLIB__)
|
||||||
|
/* newlib includes '\n' in class 'blank'.
|
||||||
|
See https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00059.html. */
|
||||||
|
VERIFY( t.isctype(L'\n', t.lookup_classname(range(blank))));
|
||||||
|
#else
|
||||||
VERIFY(!t.isctype(L'\n', t.lookup_classname(range(blank))));
|
VERIFY(!t.isctype(L'\n', t.lookup_classname(range(blank))));
|
||||||
|
#endif
|
||||||
VERIFY( t.isctype(L't', t.lookup_classname(range(upper), true)));
|
VERIFY( t.isctype(L't', t.lookup_classname(range(upper), true)));
|
||||||
VERIFY( t.isctype(L'T', t.lookup_classname(range(lower), true)));
|
VERIFY( t.isctype(L'T', t.lookup_classname(range(lower), true)));
|
||||||
#undef range
|
#undef range
|
||||||
|
Loading…
Reference in New Issue
Block a user