08a3f0ae6e
static objects, C++ runtime support
16 lines
255 B
C++
16 lines
255 B
C++
// $NetBSD: virt.cc,v 1.1 2000/12/08 19:21:28 drochner Exp $
|
|
|
|
// g++ generates a reference to "__pure_virtual" with this code
|
|
|
|
class mist {
|
|
public:
|
|
virtual void vv(void) = 0;
|
|
};
|
|
|
|
class mast: public mist {
|
|
public:
|
|
void vv(void) {};
|
|
};
|
|
|
|
static mast virt;
|