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:
parent
d090f47ae0
commit
768b99766b
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
8
gcc/testsuite/gcc.dg/pr12603.c
Normal file
8
gcc/testsuite/gcc.dg/pr12603.c
Normal 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 (;;);
|
||||
}
|
Loading…
Add table
Reference in a new issue