This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Fix last testcase
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 04 Feb 2006 11:58:50 +0100
- Subject: [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;