pr33615.c
来自「用于进行gcc测试」· C语言 代码 · 共 21 行
C
21 行
/* { dg-do compile } *//* { dg-options "-O -fnon-call-exceptions -fdump-tree-lim-details -w" } */extern volatile int y;doublefoo (double a, int x){ while (x--) { y++; a += 1.0 / 0.0; } return a;}// The expression 1.0 / 0.0 should not be treated as a loop invariant// if it may throw an exception.// { dg-final { scan-tree-dump-times "invariant up to" 0 "lim" } }// { dg-final { cleanup-tree-dump "lim" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?