20040729-1.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 19 行

C
19
字号
/* { dg-do compile } *//* { dg-options "-O1 -fdump-tree-dce3" } */foo (){  volatile int *p;  volatile int x;  p = &x;  *p = 3;  return *p + 1;}/* The assignment to 'p' is dead and should be removed.  But the   compiler was mistakenly thinking that the statement had volatile   operands.  But 'p' itself is not volatile and taking the address of   a volatile does not constitute a volatile operand.  *//* { dg-final { scan-tree-dump-times "&x" 0 "dce3"} } */

⌨️ 快捷键说明

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