1 // Compile this file with: 2 // g++ -g -Wall -shared -Wl,-soname=libtest24-soname -o libtest24-soname-v0.so test24-soname-v0.cc 3 4 struct S 5 { 6 int m0; 7 8 int get() const; 9 void set(int); 10 }; 11 12 int 13 S::get() const 14 {return m0;} 15 16 void 17 S::set(int m) 18 {m0 = m;} 19 20 void 21 foo(S&) 22 { 23 } 24