OSDN Git Service

2011-01-16 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jan 2011 02:33:30 +0000 (02:33 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jan 2011 02:33:30 +0000 (02:33 +0000)
PR libstdc++/47323
* testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc:
Only test wregex when _GLIBCXX_USE_WCHAR_T is defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168887 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc

index 20f49e4..de63ca7 100644 (file)
@@ -1,5 +1,11 @@
 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
        * testsuite/18_support/numeric_limits/lowest.cc:
        Only test wchar_t when _GLIBCXX_USE_WCHAR_T is defined.
index 82d5c6f..5e6cc2e 100644 (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;
 }