URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Testcase for proper unification of code involving references.
|
// Testcase for proper unification of code involving references.
|
|
|
template
|
template
|
struct A
|
struct A
|
{
|
{
|
void foo();
|
void foo();
|
};
|
};
|
|
|
template void A::foo() { }
|
template void A::foo() { }
|
|
|
template class A;
|
template class A;
|
|
|
const int& f1 ();
|
const int& f1 ();
|
int& f2 ();
|
int& f2 ();
|
int f3 ();
|
int f3 ();
|
|
|
template void g1 (const T&);
|
template void g1 (const T&);
|
template void g2 (T&);
|
template void g2 (T&);
|
template void g3 (T);
|
template void g3 (T);
|
|
|
int main()
|
int main()
|
{
|
{
|
g1 (f1 ());
|
g1 (f1 ());
|
g1 (f2 ());
|
g1 (f2 ());
|
g1 (f3 ());
|
g1 (f3 ());
|
g2 (f2 ());
|
g2 (f2 ());
|
g3 (f1 ());
|
g3 (f1 ());
|
g3 (f2 ());
|
g3 (f2 ());
|
g3 (f3 ());
|
g3 (f3 ());
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.