]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
isctype.cc (test01): Replace test for __NEWLIB__ macro with a dejagnu set macro.
authorMatthew Wahab <matthew.wahab@arm.com>
Thu, 12 Feb 2015 14:55:23 +0000 (14:55 +0000)
committerMatthew Wahab <mwahab@gcc.gnu.org>
Thu, 12 Feb 2015 14:55:23 +0000 (14:55 +0000)
* testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
for __NEWLIB__ macro with a dejagnu set macro.
* testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.

From-SVN: r220648

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/28_regex/traits/char/isctype.cc
libstdc++-v3/testsuite/28_regex/traits/wchar_t/isctype.cc

index 1661caf572ab589cfef583143fdf14ae9ddc0dd2..394017c84a15f4108f3178a0e2ecf9fdb6e3dcb6 100644 (file)
@@ -1,3 +1,9 @@
+2015-02-12  Matthew Wahab  <matthew.wahab@arm.com>
+
+       * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
+       for __NEWLIB__ macro with a dejagnu set macro.
+       * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
+
 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
 
        PR  libstdc++/64467
index 7c4704505503c3fc88b0911203d7ce13ce6cc404..0a1071c11507b4636bef4723dbc0593fe54c24c0 100644 (file)
@@ -1,8 +1,9 @@
-// { dg-do run }
-// { dg-options "-std=gnu++11" }
-
-//
-// 2010-06-23  Stephen M. Webb <stephen.webb@bregmasoft.ca>
+// { dg-do run }\r
+// { dg-options "-std=gnu++11" }\r
+// { dg-additional-options "-DNEWLINE_IN_CLASS_BLANK" { target newlib } }\r
+\r
+//\r
+// 2010-06-23  Stephen M. Webb <stephen.webb@bregmasoft.ca>\r
 //
 // Copyright (C) 2010-2015 Free Software Foundation, Inc.
 //
@@ -50,14 +51,14 @@ test01()
   VERIFY(!t.isctype('e', t.lookup_classname(range(upper))));
   VERIFY( t.isctype('e', t.lookup_classname(range(lower))));
   VERIFY(!t.isctype('e', t.lookup_classname(range(nothing))));
-  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('_', t.lookup_classname(range(digit))));\r
+  VERIFY( t.isctype(' ', t.lookup_classname(range(blank))));\r
+  VERIFY( t.isctype('\t', t.lookup_classname(range(blank))));\r
+#if defined (NEWLINE_IN_CLASS_BLANK)\r
+  /* On some targets, '\n' is in class 'blank'.\r
+     See https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00059.html.  */\r
+  VERIFY( t.isctype('\n', t.lookup_classname(range(blank))));\r
+#else\r
   VERIFY(!t.isctype('\n', t.lookup_classname(range(blank))));
 #endif
   VERIFY( t.isctype('t', t.lookup_classname(range(upper), true)));
index 1b3d69a758c6a88c7aa494b8aeec179d1ebfdc8e..6ca5550b8f3648d4f733307b082ecabdce1f785e 100644 (file)
@@ -1,8 +1,9 @@
-// { dg-do run }
-// { dg-options "-std=gnu++11" }
-
-// Copyright (C) 2010-2015 Free Software Foundation, Inc.
-//
+// { dg-do run }\r
+// { dg-options "-std=gnu++11" }\r
+// { dg-additional-options "-DNEWLINE_IN_CLASS_BLANK" { target newlib } }\r
+\r
+// Copyright (C) 2010-2015 Free Software Foundation, Inc.\r
+//\r
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
 // terms of the GNU General Public License as published by the
@@ -47,15 +48,14 @@ test01()
   VERIFY(!t.isctype(L'e', t.lookup_classname(range(upper))));
   VERIFY( t.isctype(L'e', t.lookup_classname(range(lower))));
   VERIFY(!t.isctype(L'e', t.lookup_classname(range(nothing))));
-  VERIFY(!t.isctype(L'_', t.lookup_classname(range(digit))));
-  VERIFY( t.isctype(L' ', 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'_', t.lookup_classname(range(digit))));\r
+  VERIFY( t.isctype(L' ', t.lookup_classname(range(blank))));\r
+  VERIFY( t.isctype(L'\t', t.lookup_classname(range(blank))));\r
+#if defined (NEWLINE_IN_CLASS_BLANK)\r
+  /* On some targets, '\n' is in class 'blank'.\r
+     See https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00059.html.  */\r
+  VERIFY( t.isctype(L'\n', t.lookup_classname(range(blank))));\r
+#else  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(lower), true)));