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++.brendan/] [nest15.C] - Rev 516
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed nested-classes
class BDDHeap {
public:
BDDHeap();
BDDHeap(const BDDHeap&);
class Page {
public:
int i;
};
struct Pointer {
Page *page;
unsigned index;
Pointer();
Pointer(const BDDHeap& heap);
};
struct Half {
struct {
Page *top;
Page **tail;
} inuse;
Half();
};
Half half[2];
unsigned halfspace;
};
inline
BDDHeap::Pointer::Pointer(const BDDHeap& heap):
page(heap.half[heap.halfspace].inuse.top),
index(0)
{ }