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 assemble }
|
// { dg-do assemble }
|
// Make sure we can initialize a reference to a templated type, that
|
// Make sure we can initialize a reference to a templated type, that
|
// requires a conversion from a derived type to a base type.
|
// requires a conversion from a derived type to a base type.
|
|
|
// prms-id: 3524
|
// prms-id: 3524
|
|
|
struct cc2Vector
|
struct cc2Vector
|
{};
|
{};
|
|
|
template
|
template
|
struct ccPair
|
struct ccPair
|
{
|
{
|
ccPair (const cc2Vector&);
|
ccPair (const cc2Vector&);
|
};
|
};
|
|
|
struct ccLine : cc2Vector
|
struct ccLine : cc2Vector
|
{
|
{
|
double distToPoint (const ccPair &);
|
double distToPoint (const ccPair &);
|
};
|
};
|
|
|
void foo ()
|
void foo ()
|
{
|
{
|
ccLine l2;
|
ccLine l2;
|
l2.distToPoint (l2);
|
l2.distToPoint (l2);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.