2 // Copyright (C) 2000 Free Software Foundation
3 // Contributed by Nathan Sidwell 22 June 2000 <nathan@codesourcery.com>
5 // Origin GNATS bug report 63 from Kurt Garloff <garloff@tue.nl>
6 // We attempted to expand va_arg prematurely in a template function.
11 void PrintArgs (Type somearg, ...)
14 va_start (argp, somearg);
16 while ( ( value = va_arg (argp, Type) ) > 0.0)
24 PrintArgs (dummy, 1.0, 2.0, 3.0, -1.0);