URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
|
|
// Contributed by Douglas Gregor
|
// Contributed by Douglas Gregor
|
|
|
template struct wrap {};
|
template struct wrap {};
|
|
|
template bool& operator==(wrap, wrap);
|
template bool& operator==(wrap, wrap);
|
|
|
template
|
template
|
void g(T, wrap > x)
|
void g(T, wrap > x)
|
{
|
{
|
bool& b = x == x; // { dg-bogus "invalid initialization of reference" "" { xfail *-*-*} }
|
bool& b = x == x; // { dg-bogus "invalid initialization of reference" "" { xfail *-*-*} }
|
}
|
}
|
|
|
template int& operator==(wrap >, wrap >);
|
template int& operator==(wrap >, wrap >);
|
|
|
void h()
|
void h()
|
{
|
{
|
wrap > x;
|
wrap > x;
|
g(17, x);
|
g(17, x);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.