Commit 124b5e36 by Paolo Carlini Committed by Paolo Carlini

re PR libstdc++/47323 (FAIL:…

re PR libstdc++/47323 (FAIL: 28_regex/08_basic_regex/requirements/constexpr_data.cc (test for excess errors))

2011-01-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/47323
	* testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc:
	Only test wregex when _GLIBCXX_USE_WCHAR_T is defined.

From-SVN: r168887
parent 9fe018dc
2011-01-16 Paolo Carlini <paolo.carlini@oracle.com> 2011-01-16 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/47323
* testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc:
Only test wregex when _GLIBCXX_USE_WCHAR_T is defined.
2011-01-16 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/47320 PR libstdc++/47320
* testsuite/18_support/numeric_limits/lowest.cc: * testsuite/18_support/numeric_limits/lowest.cc:
Only test wchar_t when _GLIBCXX_USE_WCHAR_T is defined. Only test wchar_t when _GLIBCXX_USE_WCHAR_T is defined.
......
// { dg-do compile } // { dg-do compile }
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2010 Free Software Foundation, Inc. // Copyright (C) 2010, 2011 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
...@@ -66,6 +66,8 @@ int main() ...@@ -66,6 +66,8 @@ int main()
{ {
__gnu_test::constexpr_member_data test; __gnu_test::constexpr_member_data test;
test.operator()<std::regex>(); test.operator()<std::regex>();
#ifdef _GLIBCXX_USE_WCHAR_T
test.operator()<std::wregex>(); test.operator()<std::wregex>();
#endif
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment