const-elim-2.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 11 行
C
11 行
/* The string constant in this test case should be emitted exactly once. *//* { dg-do compile } *//* { dg-options "-O2" } *//* { dg-final { scan-assembler-times "hi there" 1 } } */static inline int returns_23() { return 23; }const char *test1(void) { if (returns_23()) return 0; return "hi there"; }const char *test2(void) { return "hi there"; }const char *test3(void) { return "hi there"; }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?