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 384 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
struct A
|
struct A
|
{
|
{
|
void f() {}
|
void f() {}
|
|
|
template
|
template
|
void f() {}
|
void f() {}
|
};
|
};
|
|
|
|
|
template
|
template
|
struct B
|
struct B
|
{
|
{
|
void f() {}
|
void f() {}
|
|
|
template
|
template
|
void f() {}
|
void f() {}
|
};
|
};
|
|
|
template struct B;
|
template struct B;
|
|
|
struct C
|
struct C
|
{
|
{
|
template
|
template
|
void f() {} // { dg-error "with" } redeclaration
|
void f() {} // { dg-error "with" } redeclaration
|
|
|
template
|
template
|
void f() {} // { dg-error "overloaded" } redeclaration
|
void f() {} // { dg-error "overloaded" } redeclaration
|
};
|
};
|
|
|
|
|
template
|
template
|
struct D
|
struct D
|
{
|
{
|
void f(T);
|
void f(T);
|
void f(U);
|
void f(U);
|
};
|
};
|
|
|
template struct D;
|
template struct D;
|
|
|
template
|
template
|
struct D2
|
struct D2
|
{
|
{
|
void f(T); // { dg-error "with" } redeclaration
|
void f(T); // { dg-error "with" } redeclaration
|
void f(U); // { dg-error "overloaded" } redeclaration
|
void f(U); // { dg-error "overloaded" } redeclaration
|
};
|
};
|
|
|
template struct D2;
|
template struct D2;
|
|
|
struct E
|
struct E
|
{
|
{
|
void f(); // { dg-error "with" } redeclaration
|
void f(); // { dg-error "with" } redeclaration
|
void f(); // { dg-error "overloaded" } redeclaration
|
void f(); // { dg-error "overloaded" } redeclaration
|
};
|
};
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.