⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 20040729-1.c

📁 linux下编程用 编译软件
💻 C
字号:
/* { 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"} } *//* { dg-final { cleanup-tree-dump "dce3" } } */

⌨️ 快捷键说明

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