Commit 046e5d03 by Ian Lance Taylor Committed by Ian Lance Taylor

re PR tree-optimization/13000 ([unit-at-a-time] Using -O2 cannot detect missing…

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
parent 089efaa4
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
......
......@@ -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" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment