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 
7 int
private_function(non_defined_class *)8 private_function(non_defined_class*)
9 {
10   non_defined_class o;
11   return o.virtual_func0() + o.virtual_func_to_be_removed();
12 }
13 
14 class S::priv_type
15 {
16 public:
17   non_defined_class* member0;
18 };
19 
20 int
public_function(S * s)21 public_function(S* s)
22 {return private_function(s->priv->member0);}
23