Patchwork [v3] libstdc++/47323

login
register
mail settings
Submitter Paolo Carlini
Date Jan. 17, 2011, 2:34 a.m.
Message ID <4D33AAB2.9010609@oracle.com>
Download mbox | patch
Permalink /patch/79113/
State New
Headers show

Comments

Paolo Carlini - Jan. 17, 2011, 2:34 a.m.
Hi,

committed to mainline.

Paolo.

/////////////////////
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.

Patch

Index: testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc
===================================================================
--- testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc	(revision 168886)
+++ testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc	(working copy)
@@ -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 @@ 
 {
   __gnu_test::constexpr_member_data test;
   test.operator()<std::regex>();
+#ifdef _GLIBCXX_USE_WCHAR_T
   test.operator()<std::wregex>();
+#endif
   return 0;
 }