OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [member.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do compile }
// { dg-do compile }
class BIXSet{
class BIXSet{
int z[4];
int z[4];
public:
public:
void f(BIXSet &other){
void f(BIXSet &other){
z[0]=other.z[0];
z[0]=other.z[0];
}
}
};
};
class TestCase2{
class TestCase2{
public:
public:
BIXSet a,b;
BIXSet a,b;
public:
public:
void run(void){
void run(void){
BIXSet x,y;
BIXSet x,y;
process(0,x,y);
process(0,x,y);
}
}
protected:
protected:
template void process(const int d,BS &en,BS &lb){
template void process(const int d,BS &en,BS &lb){
a.f(en);b.f(lb);
a.f(en);b.f(lb);
}
}
};
};
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.