1 /* The string constant in this test case should be emitted exactly once. */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2" } */ 4 /* { dg-final { scan-assembler-times "hi there" 1 } } */ 5 returns_23()6static inline int returns_23() { return 23; } 7 test1(void)8const char *test1(void) { if (returns_23()) return 0; return "hi there"; } test2(void)9const char *test2(void) { return "hi there"; } test3(void)10const char *test3(void) { return "hi there"; } 11