You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
398 B
24 lines
398 B
4 months ago
|
// Compile this with:
|
||
|
// g++ -g -Wall -shared -fPIC -o test30-priv-lib-v1.so test30-priv-lib-v1.cc
|
||
|
|
||
|
#include "test30-priv-lib-v1.h"
|
||
|
|
||
|
class opaque_class
|
||
|
{
|
||
|
public:
|
||
|
virtual int inserted_member();
|
||
|
virtual int member0();
|
||
|
};
|
||
|
|
||
|
int
|
||
|
opaque_class::member0()
|
||
|
{return 0;}
|
||
|
|
||
|
int
|
||
|
opaque_class::inserted_member()
|
||
|
{return 0;}
|
||
|
|
||
|
int
|
||
|
private_function(opaque_class *o)
|
||
|
{return o->member0() + o->inserted_member();}
|