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 assemble }
|
// { dg-do assemble }
|
|
|
// Submitted by Erez Louidor Lior
|
// Submitted by Erez Louidor Lior
|
|
|
template class H;
|
template class H;
|
template
|
template
|
H foo(const H&);
|
H foo(const H&);
|
|
|
template
|
template
|
class H{
|
class H{
|
|
|
#ifdef OK
|
#ifdef OK
|
public:
|
public:
|
#endif
|
#endif
|
template class Caster, typename Source>
|
template class Caster, typename Source>
|
static H cast(const H& s);
|
static H cast(const H& s);
|
|
|
#ifndef OK
|
#ifndef OK
|
template
|
template
|
friend H foo(const H&);
|
friend H foo(const H&);
|
#endif
|
#endif
|
|
|
};
|
};
|
|
|
template class caster;
|
template class caster;
|
|
|
template
|
template
|
H foo(const H& s){
|
H foo(const H& s){
|
return H::template cast(s);
|
return H::template cast(s);
|
}
|
}
|
|
|
int main(){
|
int main(){
|
H i;
|
H i;
|
foo(i);
|
foo(i);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.