vers4.c

来自「俄罗斯高人Mamaich的Pocket gcc编译器(运行在PocketPC上)」· C语言 代码 · 共 32 行

C
32
字号
/* * 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. */#include <stdio.h>extern int foo ();intbar(){	return 3;}intnew_foo(){	return 1000+bar();}__asm__(".symver new_foo,foo@@VERS_2.0");intmain(){  printf("%d\n", foo());  return 0;}

⌨️ 快捷键说明

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