Patchwork [v3] libstdc++/47320

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

Comments

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

committed to mainline.

Paolo.

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

Patch

Index: testsuite/18_support/numeric_limits/lowest.cc
===================================================================
--- testsuite/18_support/numeric_limits/lowest.cc	(revision 168870)
+++ testsuite/18_support/numeric_limits/lowest.cc	(working copy)
@@ -3,7 +3,7 @@ 
 
 // 2010-02-25  Ed Smith-Rowland
 
-// Copyright (C) 2010 Free Software Foundation
+// Copyright (C) 2010, 2011 Free Software Foundation
 //
 // 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
@@ -54,7 +54,9 @@ 
   do_test<char>();
   do_test<signed char>();
   do_test<unsigned char>();
+#ifdef _GLIBCXX_USE_WCHAR_T
   do_test<wchar_t>();
+#endif
   do_test<char16_t>();
   do_test<char32_t>();