URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [t18.C] - Rev 516
Compare with Previous | Blame | View Log
// { dg-do assemble }
extern void byebye ();
template <class T1, class T2>
struct A
{
T1 t1;
T2 t2;
A() { t1 = 0; t2 = 0; }
~A() { byebye(); }
};
template <class Q>
int f (A<int, Q> a) {
return a.t1;
}
extern A<int,double*> aa;
int foop () { return f(aa); }