20071018-1.c

来自「用于进行gcc测试」· C语言 代码 · 共 32 行

C
32
字号
extern void abort(void);struct foo {  int rank;  char *name;};struct mem {  struct foo *x[4];};void __attribute__((noinline)) bar(struct foo **f){  *f = __builtin_malloc(sizeof(struct foo));}struct foo * foo(int rank){  void *x = __builtin_malloc(sizeof(struct mem));  struct mem *as = x;  struct foo **upper = &as->x[rank * 8 - 1];  *upper = 0;  bar(upper);  return *upper;}int main(){  if (foo(0) == 0)    abort ();  return 0;}

⌨️ 快捷键说明

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