summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20071214-1.c
blob: f30af930630f315fc5b39124b83a343593b6dae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
typedef __builtin_va_list va_list;
void gftp_config_parse_args (int numargs, char **first, ...)
{
  char **dest = first;
  va_list argp;
  __builtin_va_start (argp, first);
  while (numargs-- > 0)
    {
      *dest = __builtin_malloc (1);
      dest = __builtin_va_arg(argp, char **);
      *dest = ((void *)0);
    }
  __builtin_va_end(argp);
}