mirror of git://gcc.gnu.org/git/gcc.git
* testsuite/28_regex/traits/wchar_t/isctype.cc: Fix whitespace.
From-SVN: r220655
This commit is contained in:
parent
ec6a7096e3
commit
864f0146f0
|
|
@ -1,9 +1,9 @@
|
||||||
// { dg-do run }
|
// { dg-do run }
|
||||||
// { dg-options "-std=gnu++11" }
|
// { dg-options "-std=gnu++11" }
|
||||||
// { dg-additional-options "-DNEWLINE_IN_CLASS_BLANK" { target newlib } }
|
// { dg-additional-options "-DNEWLINE_IN_CLASS_BLANK" { target newlib } }
|
||||||
|
|
||||||
// Copyright (C) 2010-2015 Free Software Foundation, Inc.
|
// Copyright (C) 2010-2015 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
// This file is part of the GNU ISO C++ Library. This library is free
|
// 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
|
// software; you can redistribute it and/or modify it under the
|
||||||
// terms of the GNU General Public License as published by the
|
// terms of the GNU General Public License as published by the
|
||||||
|
|
@ -48,14 +48,15 @@ test01()
|
||||||
VERIFY(!t.isctype(L'e', t.lookup_classname(range(upper))));
|
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(lower))));
|
||||||
VERIFY(!t.isctype(L'e', t.lookup_classname(range(nothing))));
|
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(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 (NEWLINE_IN_CLASS_BLANK)
|
#if defined (NEWLINE_IN_CLASS_BLANK)
|
||||||
/* On some targets, '\n' is in class 'blank'.
|
/* On some targets, '\n' is in class 'blank'.
|
||||||
See https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00059.html. */
|
See https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00059.html. */
|
||||||
VERIFY( t.isctype(L'\n', t.lookup_classname(range(blank))));
|
VERIFY( t.isctype(L'\n', t.lookup_classname(range(blank))));
|
||||||
#else VERIFY(!t.isctype(L'\n', t.lookup_classname(range(blank))));
|
#else
|
||||||
|
VERIFY(!t.isctype(L'\n', t.lookup_classname(range(blank))));
|
||||||
#endif
|
#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)));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue