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 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 foo(U, V);
|
void foo(U, V);
|
};
|
};
|
|
|
|
|
template
|
template
|
template
|
template
|
void S::foo(U, V)
|
void S::foo(U, V)
|
{
|
{
|
printf("Hello, world.\n");
|
printf("Hello, world.\n");
|
}
|
}
|
|
|
|
|
int main()
|
int main()
|
{
|
{
|
S s;
|
S s;
|
s.foo(3, 3);
|
s.foo(3, 3);
|
s.foo("hello", s);
|
s.foo("hello", s);
|
|
|
S s2;
|
S s2;
|
s2.foo(3, 3);
|
s2.foo(3, 3);
|
s2.foo("hello", s);
|
s2.foo("hello", s);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.