OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [vaarg4.C] - Blame information for rev 822

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
 
3
// Bug 845. We were treating __builtin_va_arg as a unary expr, not a primary,
4
// and hence getting parse errors.
5
 
6
typedef __builtin_va_list __gnuc_va_list;
7
typedef __gnuc_va_list va_list;
8
 
9
struct X { int y; };
10
 
11
void func(va_list va)
12
{
13
  char* a = __builtin_va_arg(va, char**)[0];
14
  int b = __builtin_va_arg(va, X*)->y;
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.