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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [tmplattr1.C] - Blame information for rev 801

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

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

powered by: WebSVN 2.1.0

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