From: Dale Johannesen Date: Fri, 28 May 2004 17:09:22 +0000 (+0000) Subject: New, from PR 14498. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0919ed7222874f28a047d4ace01e15efd7edfe7d;p=gcc.git New, from PR 14498. From-SVN: r82368 --- 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); + } +}