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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [vararg-3.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/31488: va_list considered non-POD on alpha
2
// { dg-do compile }
3
 
4
typedef __builtin_va_list __gnuc_va_list;
5
typedef __gnuc_va_list va_list;
6
 
7
extern int foo (int a, int b, ...);
8
 
9
int bar (int a, int b, ...)
10
{
11
  va_list args;
12
  __builtin_va_start(args,b);
13
  int result = foo (a, b, args);
14
  __builtin_va_end(args);
15
  return result;
16
}

powered by: WebSVN 2.1.0

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