20001117-1.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 26 行

C
26
字号
/* { dg-do run } *//* { dg-options "-O2 -finstrument-functions" } */doublefoo (double a, double b){  double c;  if (0.0 < a)    c = a;  else if (b > 0.0)    c = 0.0;  else    return 0;  return 2.0 * (b - c);}int main (){  if (foo (1.0, 4.0) != 6.0)    abort ();  exit (0);}void __attribute__((no_instrument_function)) __cyg_profile_func_enter() { }void __attribute__((no_instrument_function)) __cyg_profile_func_exit() { } 

⌨️ 快捷键说明

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