1// Compile this with: 2// g++ -g -Wall -shared -fPIC -o test30-pub-lib-v0.so test30-pub-lib-v0.cc 3 4#include "test30-include-dir-v0/test30-pub-lib-v0.h" 5#include "test30-priv-lib-v0.h" 6 7int 8private_function(non_defined_class*) 9{ 10 non_defined_class o; 11 return o.virtual_func0() + o.virtual_func_to_be_removed(); 12} 13 14class S::priv_type 15{ 16public: 17 non_defined_class* member0; 18}; 19 20int 21public_function(S* s) 22{return private_function(s->priv->member0);} 23