pr22117.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 24 行
C
24 行
/* PR tree-optimization/22117 VRP used think that &p[q] is nonzero even though p and q are both known to be zero after entering the first two "if" statements. *//* { dg-do compile } *//* { dg-options "-O2 -fdump-tree-vrp" } */voidfoo (int *p, int q){ if (p == 0) { if (q == 0) { int *r = &p[q]; if (r != 0) link_error (); } }}/* { dg-final { scan-tree-dump-times "Folding predicate r_.* != 0B to 0" 1 "vrp" } } *//* { dg-final { cleanup-tree-dump "vrp" } } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?