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
|
@ -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>
|
2008-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
||||||
|
|
||||||
PR c++/37004
|
PR c++/37004
|
||||||
|
|
|
@ -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…
Reference in New Issue