1 // Compile this with: 2 // g++ -g -Wall -shared -fPIC -o test30-priv-lib-v1.so test30-priv-lib-v1.cc 3 4 #include "test30-priv-lib-v1.h" 5 6 class opaque_class 7 { 8 public: 9 virtual int inserted_member(); 10 virtual int member0(); 11 }; 12 13 int member0()14opaque_class::member0() 15 {return 0;} 16 17 int inserted_member()18opaque_class::inserted_member() 19 {return 0;} 20 21 int private_function(opaque_class * o)22private_function(opaque_class *o) 23 {return o->member0() + o->inserted_member();} 24