fptr-1.c
来自「用于进行gcc测试」· C语言 代码 · 共 38 行
C
38 行
/* { dg-do run { target ia64-*-linux* } } *//* { dg-options "-O2" } *//* Test function descriptor access. */extern unsigned long *_GLOBAL_OFFSET_TABLE_;extern void abort(void);struct ia64_fdesc{ unsigned long func; unsigned long gp;};voidos_boot_rendez (void){}static intcheck (unsigned long gp){ return gp != (unsigned long) &_GLOBAL_OFFSET_TABLE_;}intmain (int argc, char **argv){ int i; int res = 0; for (i = 0; i < 1; i++) res += check (((struct ia64_fdesc *) os_boot_rendez)->gp); if (res) abort (); return res;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?