1 /* 2 * Testcase to verify that foo@BAR and foo@@BAR are correctly detected 3 * as a multiply defined symbol. 4 */ 5 #include "vers.h" 6 7 const char * bar1 = "asdf"; 8 const char * bar2 = "asdf"; 9 10 int bar()11bar() 12 { 13 return 3; 14 } 15 16 int original_foo()17original_foo() 18 { 19 return 1+bar(); 20 21 } 22 23 int old_foo()24old_foo() 25 { 26 return 10+bar(); 27 28 } 29 30 int old_foo1()31old_foo1() 32 { 33 return 100+bar(); 34 35 } 36 37 int new_foo()38new_foo() 39 { 40 return 1000+bar(); 41 42 } 43 44 SYMVER(original_foo, foo@); 45 SYMVER(old_foo, foo@VERS_1.1); 46 SYMVER(old_foo1, foo@VERS_1.2); 47 SYMVER(new_foo, foo@@VERS_1.2); 48 49 int main()50main () 51 { 52 return 0; 53 } 54