summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/28_regex/traits/char
diff options
context:
space:
mode:
authorMatthew Wahab <matthew.wahab@arm.com>2015-02-04 09:24:56 +0000
committerRenlin Li <renlin@gcc.gnu.org>2015-02-04 09:24:56 +0000
commitff9eac296535655185dfe0de26d14376cd258dfe (patch)
treeb6522b773773f3d07b9eb6f05fb4dddd51a5058b /libstdc++-v3/testsuite/28_regex/traits/char
parent283b44f96adb3e369cb8ed166d6c45703738927b (diff)
downloadgcc-ff9eac296535655185dfe0de26d14376cd258dfe.tar.gz
[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
Diffstat (limited to 'libstdc++-v3/testsuite/28_regex/traits/char')
-rw-r--r--libstdc++-v3/testsuite/28_regex/traits/char/isctype.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/28_regex/traits/char/isctype.cc b/libstdc++-v3/testsuite/28_regex/traits/char/isctype.cc
index a7b1396da0c..7c470450550 100644
--- a/libstdc++-v3/testsuite/28_regex/traits/char/isctype.cc
+++ b/libstdc++-v3/testsuite/28_regex/traits/char/isctype.cc
@@ -53,7 +53,13 @@ test01()
VERIFY(!t.isctype('_', t.lookup_classname(range(digit))));
VERIFY( t.isctype(' ', 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))));
+#endif
VERIFY( t.isctype('t', t.lookup_classname(range(upper), true)));
VERIFY( t.isctype('T', t.lookup_classname(range(lower), true)));
#undef range