re PR c/12603 (No return statement warning on function that never returns with -O3)

2008-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
        
	PR 12603
	* gcc.dg/pr12603.c: New testcase.

From-SVN: r141244
This commit is contained in:
Manuel López-Ibáñez 2008-10-20 18:26:21 +00:00
parent d090f47ae0
commit 768b99766b
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 12603
* gcc.dg/pr12603.c: New testcase.
2008-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/37004

View File

@ -0,0 +1,8 @@
/* PR 12603: No return statement warning on function that never returns with -O3. */
/* { dg-do compile } */
/* { dg-options "-O3 -Wall -Wextra -Wreturn-type -Wunreachable-code" } */
int
this_function_never_returns ()
{
for (;;);
}