8sa1-gcc/gcc/testsuite/g++.old-deja/g++.brendan/visibility4.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

15 lines
268 B
C

// Build don't link:
// Special g++ Options: -w
// GROUPS passed visibility
template <class T>
class Feld {
public:
Feld(const Feld&) {}
};
class Polynom : private Feld<double> {
friend Polynom f(const Polynom&);
};
Polynom f(const Polynom& p) { return p; }