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
This commit is contained in:
Paolo Carlini 2011-01-17 02:33:30 +00:00 committed by Paolo Carlini
parent 9fe018dca2
commit 124b5e3620
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -1,7 +1,7 @@
// { dg-do compile }
// { 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
// software; you can redistribute it and/or modify it under the
@ -66,6 +66,8 @@ int main()
{
__gnu_test::constexpr_member_data test;
test.operator()<std::regex>();
#ifdef _GLIBCXX_USE_WCHAR_T
test.operator()<std::wregex>();
#endif
return 0;
}