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*, ...);
|
|
|
struct S {
|
struct S {
|
template
|
template
|
operator T();
|
operator T();
|
};
|
};
|
|
|
template
|
template
|
S::operator T()
|
S::operator T()
|
{
|
{
|
printf("Hello, world.\n");
|
printf("Hello, world.\n");
|
return T();
|
return T();
|
}
|
}
|
|
|
|
|
template S::operator int();
|
template S::operator int();
|
|
|
int main()
|
int main()
|
{
|
{
|
S s;
|
S s;
|
|
|
int i = s.operator int();
|
int i = s.operator int();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.