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/] [20040206-1.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -W -Wall" } */
/* { dg-options "-O2 -W -Wall" } */
/*  PR c/13127
/*  PR c/13127
    On the tree-ssa this used to warn about an anonymous
    On the tree-ssa this used to warn about an anonymous
    uninitialized variable.
    uninitialized variable.
 
 
    The warning about "no return statement in function
    The warning about "no return statement in function
    returning non-void" is PR 13000. */
    returning non-void" is PR 13000. */
 
 
static int foo (int a __attribute__((unused)) ) { } /* { dg-warning "control reaches end of non-void" } */
static int foo (int a __attribute__((unused)) ) { } /* { dg-warning "control reaches end of non-void" } */
int main (void) { return foo (0); }
int main (void) { return foo (0); }
 
 

powered by: WebSVN 2.1.0

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