summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr43066.c
blob: 2ded9123ed874e5b4fc74529b1c8664eedeb5be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct S {
  struct { } empty[1];
  int i;
};

int foo(int i, ...)
{
  struct S s;
  __builtin_va_list va;
  __builtin_va_start(va, i);
  s = __builtin_va_arg(va, struct S);
  __builtin_va_end(va);
  return s.i;
}