URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [vaarg4.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-Wno-abi" { target arm_eabi } }
// Bug 845. We were treating __builtin_va_arg as a unary expr, not a primary,
// and hence getting parse errors.
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, X*)->y;
}
Go to most recent revision | Compare with Previous | Blame | View Log