URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do run { target i?86-*-* x86_64-*-* } }
|
// { dg-do run { target i?86-*-* x86_64-*-* } }
|
// { dg-require-effective-target ilp32 }
|
// { dg-require-effective-target ilp32 }
|
// Test for proper handling of attributes in template instantiation.
|
// Test for proper handling of attributes in template instantiation.
|
// Contributed by Jason Merrill
|
// Contributed by Jason Merrill
|
|
|
template
|
template
|
struct A {
|
struct A {
|
static void f () __attribute__ ((stdcall));
|
static void f () __attribute__ ((stdcall));
|
};
|
};
|
|
|
template void
|
template void
|
A::f () { }
|
A::f () { }
|
|
|
void g (void (__attribute__ ((stdcall)) *p)()) { }
|
void g (void (__attribute__ ((stdcall)) *p)()) { }
|
void g (int);
|
void g (int);
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
g (&A::f);
|
g (&A::f);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.