diff options
author | dalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-28 17:09:22 +0000 |
---|---|---|
committer | dalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-28 17:09:22 +0000 |
commit | 383051ad981ca5ce88fdab1eb2b434290177b9b4 (patch) | |
tree | 1eee8f42afddc55a395d4d54165008f8f094380c /gcc/testsuite/gcc.dg/va-arg-3.c | |
parent | 66e891c6da1953a19a4fcf0f828ebfb34b3e8bea (diff) | |
download | gcc-383051ad981ca5ce88fdab1eb2b434290177b9b4.tar.gz |
New, from PR 14498.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82368 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/va-arg-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/va-arg-3.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/va-arg-3.c b/gcc/testsuite/gcc.dg/va-arg-3.c new file mode 100644 index 00000000000..ef2344b4f3d --- /dev/null +++ b/gcc/testsuite/gcc.dg/va-arg-3.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O3" } */ +/* PR 14498. */ +#include <stdarg.h> +extern void baz(char *); +void bar (va_list *args) +{ + if (args) + { + char *s = va_arg(*args, char *); + baz(s); + } +} |