1 // Compile this with: 2 // g++ -Wall -g -shared -Wl,--version-script=test7-var-suppr-version-script -o libtest7-var-suppr-v0.so test7-var-suppr-v0.cc 3 struct S0 4 { 5 int m0; 6 }; 7 8 struct S1 9 { 10 int m0; 11 }; 12 13 S0* var0; 14 15 asm(".symver var0,var0@VERSION_1.0"); 16 17 S1* var1; 18 19 asm(".symver var1,var1@VERSION_1.0"); 20