-// { 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.
//
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)));
-// { 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
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)));