vers4.c

来自「Linux下嵌入式开发工具源代码」· C语言 代码 · 共 24 行

C
24
字号
/* * Testcase to make sure that a versioned symbol definition in an * application correctly defines the version node, if and only if * the actual symbol is exported.  This is built both with and without * -export-dynamic. */int bar(){	return 3;}new_foo(){	return 1000+bar();}__asm__(".symver new_foo,foo@@VERS_2.0");main(){  printf("%d\n", foo());}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?