8sa1-gcc/gcc/testsuite/g++.old-deja/g++.brendan/visibility4.C

15 lines
268 B
C++
Raw Normal View History

1997-08-19 03:34:40 -04:00
// 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; }