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 link }
|
// { dg-do link }
|
// GROUPS passed templates membertemplates
|
// GROUPS passed templates membertemplates
|
extern "C" int printf(const char*, ...);
|
extern "C" int printf(const char*, ...);
|
|
|
template
|
template
|
struct S
|
struct S
|
{
|
{
|
template
|
template
|
void g(U u)
|
void g(U u)
|
{ printf ("In S::g(U)\n"); }
|
{ printf ("In S::g(U)\n"); }
|
|
|
int c[16];
|
int c[16];
|
};
|
};
|
|
|
|
|
template
|
template
|
struct T : public S
|
struct T : public S
|
{
|
{
|
template
|
template
|
void f(U u)
|
void f(U u)
|
{ printf ("In T::f(U)\n"); g(u); }
|
{ printf ("In T::f(U)\n"); g(u); }
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
T t;
|
T t;
|
t.f(3);
|
t.f(3);
|
t.f("adf");
|
t.f("adf");
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.