summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/va-arg-3.c
blob: ef2344b4f3d66985a217a2ed7aaa2b4fa08a42ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
    }
}