2f401cc807
* c-parse.in (unary_expr): Move VA_ARG from here ... (primary): ... to here. cp: * parse.y (unary_expr): Move VA_ARG from here ... (primary): ... to here. testsuite: * g++.old-deja/g++.other/vaarg4.C: New test. * gcc.c-torture/compile/20001123-1.c: New test. From-SVN: r37703
12 lines
215 B
C
12 lines
215 B
C
|
|
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;
|
|
}
|