URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/24260
|
// PR c++/24260
|
// { dg-do compile { target i?86-*-* x86_64-*-* } }
|
// { dg-do compile { target i?86-*-* x86_64-*-* } }
|
// { dg-require-effective-target ilp32 }
|
// { dg-require-effective-target ilp32 }
|
|
|
#define stdcall __attribute__((stdcall))
|
#define stdcall __attribute__((stdcall))
|
|
|
struct T {
|
struct T {
|
template
|
template
|
static int stdcall func(int arg1, int arg2);
|
static int stdcall func(int arg1, int arg2);
|
};
|
};
|
|
|
template
|
template
|
int stdcall T::func(int arg1, int arg2)
|
int stdcall T::func(int arg1, int arg2)
|
{
|
{
|
return arg1+arg2;
|
return arg1+arg2;
|
}
|
}
|
|
|
struct dummy {};
|
struct dummy {};
|
|
|
void xx()
|
void xx()
|
{
|
{
|
int (stdcall *ptr2)(int,int) = &T::func;
|
int (stdcall *ptr2)(int,int) = &T::func;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.