re PR tree-optimization/13000 ([unit-at-a-time] Using -O2 cannot detect missing retur...
authorIan Lance Taylor <ian@c2micro.com>
Fri, 21 Jan 2005 19:05:52 +0000 (19:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jan 2005 19:05:52 +0000 (19:05 +0000)
PR tree-optimization/13000
* gcc.dg/20040206-1.c: Change warning to point where function is
being inlined.

From-SVN: r94025

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20040206-1.c

index e2e33ea65589ccd4b0053170d98cca8686625b6b..9c88afbf2efa6f5f7fea84d093496aef716bc2dd 100644 (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
index e47b5981a457fc9491fc18ad506a694eab7541e6..ae5ef334c6512ea2a9e48d35568fbd3de6848e2e 100644 (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" } */