re PR middle-end/17909 (ICE: verifiy_stms failed)

2004-12-04  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/17909
        * g++.dg/other/vararg-2.C: New test.

From-SVN: r91728
This commit is contained in:
Andrew Pinski 2004-12-04 14:15:01 +00:00 committed by Andrew Pinski
parent 2efcfa4ef6
commit a6ac7f6fb4
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/17909
* g++.dg/other/vararg-2.C: New test.
2004-12-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/17011, c++/17971

View File

@ -0,0 +1,11 @@
// { dg-do compile }
struct QString {};
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;
QString & sprintf(QString &s,const QString &szFmt,...)
{
va_list list;
__builtin_va_start(list,((const char *)(&(szFmt))));
__builtin_va_end(list);
return s;
}