diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp-va-arg-bug.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp-va-arg-bug.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp-va-arg-bug.C b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp-va-arg-bug.C new file mode 100644 index 0000000..616f2f4 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp-va-arg-bug.C @@ -0,0 +1,11 @@ +// { dg-do compile { target c++11 } } +// { dg-options "-Wno-abi" { target arm_eabi } } +#include <stdarg.h> + +struct S { }; +void f(S const &); + +void g(va_list args) +{ + f(va_arg(args, S)); +} |