20040721-1.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 29 行
C
29 行
/* { dg-do compile } *//* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-store_ccp-vops" } *//* Test to check whether global variables are being constant propagated. */int G;foo (int i){ if (i > 0) G = 3; else G = 3; if (G != 3) link_error ();}main (){ foo (0); return 0;}/* There should be no G on the RHS of an assignment. *//* { dg-final { scan-tree-dump-times "= G;" 0 "store_ccp"} } *//* { dg-final { cleanup-tree-dump "store_ccp" } } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?