URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do link }
|
// { dg-do link }
|
// GROUPS passed templates membertemplates
|
// GROUPS passed templates membertemplates
|
template
|
template
|
struct I {
|
struct I {
|
};
|
};
|
|
|
template
|
template
|
struct A {
|
struct A {
|
|
|
int r;
|
int r;
|
|
|
template
|
template
|
void operator()(T1, T2)
|
void operator()(T1, T2)
|
{ r = 0; }
|
{ r = 0; }
|
|
|
template
|
template
|
void operator()(I, I)
|
void operator()(I, I)
|
{ r = 1; }
|
{ r = 1; }
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
A x;
|
A x;
|
I<0> a;
|
I<0> a;
|
I<1> b;
|
I<1> b;
|
|
|
x(a,b);
|
x(a,b);
|
if (x.r != 1)
|
if (x.r != 1)
|
return 1;
|
return 1;
|
|
|
x(float(), double());
|
x(float(), double());
|
if (x.r != 0)
|
if (x.r != 0)
|
return 1;
|
return 1;
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.