re PR tree-optimization/13000 ([unit-at-a-time] Using -O2 cannot detect missing return statement in a function)

PR tree-optimization/13000
	* gcc.dg/20040206-1.c: Change warning to point where function is
	being inlined.

From-SVN: r94025
This commit is contained in:
Ian Lance Taylor 2005-01-21 19:05:52 +00:00 committed by Ian Lance Taylor
parent 089efaa4a1
commit 046e5d036f
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-01-21 Ian Lance Taylor <ian@c2micro.com>
PR tree-optimization/13000
* gcc.dg/20040206-1.c: Change warning to point where function is
being inlined.
2005-01-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/19208

View file

@ -7,5 +7,5 @@
The warning about "no return statement in function
returning non-void" is PR 13000. */
static int foo (int a __attribute__((unused)) ) { } /* { dg-warning "return" "" { xfail *-*-* } } */
int main (void) { return foo (0); }
static int foo (int a __attribute__((unused)) ) { }
int main (void) { return foo (0); } /* { dg-warning "control may reach end" } */