summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20001123-1.c
blob: 59534480db26be743673dc08036c748120ae306a (plain)
1
2
3
4
5
6
7
8
9
10
11
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;

struct X { int y; };

void func(va_list va)
{
  char* a = __builtin_va_arg(va, char**)[0];
  int b = __builtin_va_arg(va, struct X*)->y;
}