Skip to content

Commit

Permalink
New, from PR 14498.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82368 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
dalej committed May 28, 2004
1 parent 66e891c commit 383051a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gcc/testsuite/gcc.dg/va-arg-3.c
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 383051a

Please sign in to comment.