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 assemble }
|
// { dg-do assemble }
|
// GROUPS passed templates membertemplates
|
// GROUPS passed templates membertemplates
|
template
|
template
|
struct B {
|
struct B {
|
};
|
};
|
|
|
template
|
template
|
struct D {
|
struct D {
|
struct E {
|
struct E {
|
template
|
template
|
static void f(B)
|
static void f(B)
|
{ }
|
{ }
|
};
|
};
|
};
|
};
|
|
|
template
|
template
|
struct A {
|
struct A {
|
template
|
template
|
static void f(B, B b)
|
static void f(B, B b)
|
{
|
{
|
typedef typename D::E E;
|
typedef typename D::E E;
|
E::f(b);
|
E::f(b);
|
}
|
}
|
};
|
};
|
|
|
void foo()
|
void foo()
|
{
|
{
|
A<5>::f(B<5,float>(),B<3,float>());
|
A<5>::f(B<5,float>(),B<3,float>());
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.