URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { 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 f(U u);
|
void f(U u);
|
|
|
template
|
template
|
void g(U u);
|
void g(U u);
|
|
|
int c[16];
|
int c[16];
|
};
|
};
|
|
|
template
|
template
|
template
|
template
|
void S::f(U u)
|
void S::f(U u)
|
{ printf ("In S::f(U)\n"); g(u); }
|
{ printf ("In S::f(U)\n"); g(u); }
|
|
|
template
|
template
|
template
|
template
|
void S::g(U u)
|
void S::g(U u)
|
{ printf ("In S::g(U)\n"); }
|
{ printf ("In S::g(U)\n"); }
|
|
|
int main()
|
int main()
|
{
|
{
|
S s;
|
S s;
|
s.f(3);
|
s.f(3);
|
s.f("adf");
|
s.f("adf");
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.