URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// PR c++/3870
|
// PR c++/3870
|
// Test that performing a type instantiation in order to match up a
|
// Test that performing a type instantiation in order to match up a
|
// specialization doesn't clobber last_function_parms.
|
// specialization doesn't clobber last_function_parms.
|
|
|
template
|
template
|
struct A { typedef int I; };
|
struct A { typedef int I; };
|
|
|
template
|
template
|
inline typename T::I
|
inline typename T::I
|
foo (typename T::I, const T*);
|
foo (typename T::I, const T*);
|
|
|
template <>
|
template <>
|
int foo (int i, const A*)
|
int foo (int i, const A*)
|
{
|
{
|
return i + 1;
|
return i + 1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.