From 383051ad981ca5ce88fdab1eb2b434290177b9b4 Mon Sep 17 00:00:00 2001 From: dalej Date: Fri, 28 May 2004 17:09:22 +0000 Subject: New, from PR 14498. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82368 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gcc.dg/va-arg-3.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/va-arg-3.c (limited to 'gcc') 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 +extern void baz(char *); +void bar (va_list *args) +{ + if (args) + { + char *s = va_arg(*args, char *); + baz(s); + } +} -- cgit v1.2.1