diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-03-30 17:31:46 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2009-03-30 17:31:46 +0000 |
commit | 821a687bb3bfa18eabfc9e717c5c9f480fd9647e (patch) | |
tree | a6e57b0336a8e766192d6b7b6f59bd62093e8234 /gcc/testsuite/g++.dg/other/var_copy-1.C | |
parent | e0b05a75af586156d675d122abddbe0d527b0c16 (diff) |
svn merge -r144476:145289 svn+ssh://gcc.gnu.org/svn/gcc/trunkc-4_5-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/c-4_5-branch@145306 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/other/var_copy-1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/var_copy-1.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/var_copy-1.C b/gcc/testsuite/g++.dg/other/var_copy-1.C new file mode 100644 index 00000000000..2fc6b780e18 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/var_copy-1.C @@ -0,0 +1,14 @@ +// { dg-options "-std=c++0x" } +// { dg-do compile } + +// Test to allow for va_copy with C++0x standard. + +#include <cstdarg> + +va_list x; +va_list y; + +int main () +{ + va_copy (y, x); +} |