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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [pr37879.c] - Diff between revs 298 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 384
/* PR tree-optimization/37879 */
/* PR tree-optimization/37879 */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
 
 
static inline void bar (int) __attribute__ ((noreturn));
static inline void bar (int) __attribute__ ((noreturn));
void baz () __attribute__ ((noreturn));
void baz () __attribute__ ((noreturn));
 
 
inline int
inline int
foo (int i)
foo (int i)
{
{
  return i;
  return i;
}
}
 
 
int i = 23;
int i = 23;
static inline void
static inline void
bar (int j)
bar (int j)
{
{
  if (j)
  if (j)
    asm ("");
    asm ("");
}               /* { dg-warning "does return" } */
}               /* { dg-warning "does return" } */
 
 
void
void
baz ()
baz ()
{
{
  int j;
  int j;
  bar (foo (j = i++));
  bar (foo (j = i++));
  asm ("");
  asm ("");
}
}
 
 

powered by: WebSVN 2.1.0

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