1int
2foo_v1 (int a)
3{
4 return 1;
5}
6asm (".symver foo_v1, foo@v1");
7
8int
9foo_v2 (int a)
10{
11 return 2;
12}
13asm (".symver foo_v2, foo@v2");
14
15int
16foo (int a)
17{
18 return 3;
19}
20asm (".symver foo, foo@@@v3");
21

source code of glibc/elf/nextmod3.c