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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [tmplattr1.C] - Diff between revs 301 and 338

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;
}
}
 
 

powered by: WebSVN 2.1.0

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