URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [const-elim-2.c] - Rev 154
Compare with Previous | Blame | View Log
/* 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"; }