OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [const-elim-2.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* 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
 
6
static inline int returns_23() { return 23; }
7
 
8
const char *test1(void) { if (returns_23()) return 0; return "hi there"; }
9
const char *test2(void) { return "hi there"; }
10
const char *test3(void) { return "hi there"; }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.