pr20139.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 24 行

C
24
字号
/* PR tree-optimization/20139   This testcase is derived from gcc.dg/20020720-1.c.  Here we check   that the optimization happens at tree level.  *//* { dg-do compile } *//* { dg-options "-O2 -fdump-tree-final_cleanup" } */extern double fabs (double);extern void link_error (void);voidfoo (double x){  double p, q;  p = fabs (x);  q = 0.0;  if (p < q)    link_error ();}/* { dg-final { scan-tree-dump-times "link_error" 0 "final_cleanup" } } *//* { dg-final { cleanup-tree-dump "final_cleanup" } } */

⌨️ 快捷键说明

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