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