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 }
|
|
|
// Testing overloading of function argument involving template template
|
// Testing overloading of function argument involving template template
|
// parameters
|
// parameters
|
|
|
// Reported by Thomus Kunert
|
// Reported by Thomus Kunert
|
|
|
template
|
template
|
class H{};
|
class H{};
|
|
|
template
|
template
|
void f( const T& ){} // #1
|
void f( const T& ){} // #1
|
|
|
template< template class X,
|
template< template class X,
|
class A, class B>
|
class A, class B>
|
void f( const X & x ) // #2
|
void f( const X & x ) // #2
|
{}
|
{}
|
|
|
int main()
|
int main()
|
{
|
{
|
H h;
|
H h;
|
f(h); // #3
|
f(h); // #3
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.