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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [tmplattr1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/24260
2
// { dg-do compile { target i?86-*-* x86_64-*-* } }
3
// { dg-require-effective-target ilp32 }
4
 
5
#define stdcall __attribute__((stdcall))
6
 
7
struct T {
8
  template 
9
  static int stdcall func(int arg1, int arg2);
10
};
11
 
12
template 
13
int stdcall T::func(int arg1, int arg2)
14
{
15
  return arg1+arg2;
16
}
17
 
18
struct dummy {};
19
 
20
void xx()
21
{
22
  int (stdcall *ptr2)(int,int) = &T::func;
23
}
24
 

powered by: WebSVN 2.1.0

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