diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/stdarg2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/stdarg2.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/stdarg2.C b/gcc/testsuite/g++.dg/other/stdarg2.C new file mode 100644 index 000000000..99e904013 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/stdarg2.C @@ -0,0 +1,12 @@ +// PR c++/11929 +// Bug: We were complaining about the call to va_start because o is of +// non-POD type. + +struct s { + s(int); +}; + +void test(s o, ...) { + __builtin_va_list varg; + __builtin_va_start(varg, o); +} |