diff options
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r-- | gcc/testsuite/g++.dg/expr/stdarg1.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/expr/stdarg1.C b/gcc/testsuite/g++.dg/expr/stdarg1.C new file mode 100644 index 00000000000..85b6f7460e3 --- /dev/null +++ b/gcc/testsuite/g++.dg/expr/stdarg1.C @@ -0,0 +1,13 @@ +// PR c++/23840 + +#include <stdarg.h> +struct S +{ + int f(int); +}; +void f(int i, ...) +{ + va_list ap; + va_start (ap, i); + va_arg (ap, S).f(0); +} |