• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Compile this with:
2 // g++ -g -Wall -shared -fPIC -o test30-pub-lib-v1.so test30-pub-lib-v1.cc
3 
4 #include "test30-include-dir-v1/test30-pub-lib-v1.h"
5 #include "test30-priv-lib-v1.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_inserted();
12 }
13 
14 class S::priv_type
15 {
16 public:
17   non_defined_class* member0;
18   int member1;
19 };
20 
21 int
public_function(S * s)22 public_function(S* s)
23 {return private_function(s->priv->member0) + s->priv->member1;}
24