This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Fix last testcase


Hi,

sorry about that. Tested x86_64-linux, committed to mainline.

Paolo.

//////////
2006-02-04  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Fix.
Index: functions.cc
===================================================================
--- functions.cc	(revision 110586)
+++ functions.cc	(working copy)
@@ -28,7 +28,7 @@
 
 #if _GLIBCXX_USE_WCHAR_T
 
-void test01()
+void test01(int dummy, ...)
 {
 #if _GLIBCXX_USE_C99_WCHAR_TR1
 
@@ -37,7 +37,8 @@
   const wchar_t* s = 0;
   wchar_t** endptr = 0;
   FILE* stream = 0;
-  std::va_list arg = 0;
+  std::va_list arg;
+  va_start(arg, dummy);
 
   float fret;
   long double ldret;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]