1 // Compile this with: 2 // g++ -Wall -g -shared -Wl,--version-script=test3-fn-removed-version-script-1 -o libtest3-fn-removed-v1.so test3-fn-removed-v1.cc 3 4 int _internal_fun0()5_internal_fun0() 6 {return 0;} 7 8 asm(".symver _Z14_internal_fun0v,_Z4fun0v@@VERSION_1.0"); 9 10 void _internal_fun1()11_internal_fun1() 12 { 13 } 14 15 asm(".symver _Z14_internal_fun1v,_Z4fun1v@@VERSION_2.0"); 16