Patchwork [v3] libstdc++/47321

login
register
mail settings
Submitter Paolo Carlini
Date Jan. 16, 2011, 8:44 p.m.
Message ID <4D3358AB.9030307@oracle.com>
Download mbox | patch
Permalink /patch/79099/
State New
Headers show

Comments

Paolo Carlini - Jan. 16, 2011, 8:44 p.m.
Hi,

sanity checked on x86_64-linux, committed.

Paolo.

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

	PR libstdc++/47321
	* testsuite/21_strings/basic_string/requirements/typedefs.cc:
	Only test std::wstring when _GLIBCXX_USE_WCHAR_T is defined.

Patch

Index: testsuite/21_strings/basic_string/requirements/typedefs.cc
===================================================================
--- testsuite/21_strings/basic_string/requirements/typedefs.cc	(revision 168831)
+++ testsuite/21_strings/basic_string/requirements/typedefs.cc	(working copy)
@@ -1,7 +1,7 @@ 
 // { dg-options "-std=gnu++0x" }
 // { dg-do compile }
 
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009, 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
@@ -23,4 +23,6 @@ 
 
 // Check container for required typedefs.
 __gnu_test::types<std::string> t1;
+#ifdef _GLIBCXX_USE_WCHAR_T
 __gnu_test::types<std::wstring> t2;
+#endif