URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* The string constant in this test case should be emitted exactly once. */
|
/* The string constant in this test case should be emitted exactly once. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2" } */
|
/* { dg-options "-O2" } */
|
/* { dg-final { scan-assembler-times "hi there" 1 } } */
|
/* { dg-final { scan-assembler-times "hi there" 1 } } */
|
|
|
static inline int returns_23() { return 23; }
|
static inline int returns_23() { return 23; }
|
|
|
const char *test1(void) { if (returns_23()) return 0; return "hi there"; }
|
const char *test1(void) { if (returns_23()) return 0; return "hi there"; }
|
const char *test2(void) { return "hi there"; }
|
const char *test2(void) { return "hi there"; }
|
const char *test3(void) { return "hi there"; }
|
const char *test3(void) { return "hi there"; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.