Commit 86d75cdd by Geoffrey Keating Committed by Geoffrey Keating

vaarg3.C: Don't expect an error for passing a non-POD type as the last named parameter of...

	* g++.old-deja/g++.pt/vaarg3.C: Don't expect an error for passing
	a non-POD type as the last named parameter of a varargs function.

From-SVN: r74647
parent 1313d87f
2003-12-15 Geoffrey Keating <geoffk@apple.com>
* g++.old-deja/g++.pt/vaarg3.C: Don't expect an error for passing
a non-POD type as the last named parameter of a varargs function.
2003-12-15 Mark Mitchell <mark@codesourcery.com>
PR c++/13243
......
......@@ -12,7 +12,7 @@ template <class Type>
void PrintArgs (Type somearg, ...)
{
va_list argp;
va_start (argp, somearg); // { dg-error "" } cannot pass non-POD
va_start (argp, somearg);
Type value;
value = va_arg (argp, Type); // { dg-error "" } cannot pass non-POD
va_end (argp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment