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.5.1/] [gcc/] [testsuite/] [gcc.dg/] [return-type-3.c] - Blame information for rev 404

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR optimization/7189
2
   This was a missing warning caused by a cfg cleanup after sibling
3
   call optimization.  The return clobber insn was cleaned up and
4
   the warning was never issued.  */
5
/* { dg-do compile } */
6
/* { dg-options "-O -foptimize-sibling-calls -Wreturn-type" } */
7
 
8
extern void foo(void);
9
 
10
int
11
bar (void)
12
{
13
  foo();
14
} /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */

powered by: WebSVN 2.1.0

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