testprog.c

来自「GNU binutils是GNU交叉工具链中的一个源码包」· C语言 代码 · 共 32 行

C
32
字号
/* This program is used to test objcopy, readelf and strip.  */extern int strcmp (char *, const char *);extern int printf (const char *, ...);int common;int global = 1;static int local = 2;static char string[] = "string";intfn (void){  return 3;}intmain (void){  if (common != 0      || global != 1      || local != 2      || strcmp (string, "string") != 0)    {      printf ("failed\n");      return 1;    }  printf ("ok\n");  return 0;}

⌨️ 快捷键说明

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