summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr40023.c
blob: 93d8f68a5e59c2b34cb990982e203e2c31cb76d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
typedef __builtin_va_list va_list;
typedef struct {
    va_list ap;
} ScanfState;
void
GetInt(ScanfState *state, long llval)
{
  *__builtin_va_arg(state->ap,long *) = llval;
  __builtin_va_end(state->ap);
}