OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [uninit-pr20644-O0.c] - Rev 298

Compare with Previous | Blame | View Log

/* PR 20644 */
/* { dg-do compile } */
/* { dg-options "-O0 -Wuninitialized" } */
int foo ()
{
  int i = 0;
  int j;
 
  if (1 == i)
    return j; /* { dg-bogus "uninitialized" "uninitialized" { xfail *-*-* } 10 } */
 
  return 0;
}
 
int bar ()
{
  int i = 1;
  int j; 
 
  if (1 == i)
    return j; /* { dg-warning "uninitialized" "uninitialized" { target *-*-* } 21 } */
 
  return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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