summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr12603.c
blob: d0a4835cb1eb5b0bf71ffedb73faf67c87a90c9c (plain)
1
2
3
4
5
6
7
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 (;;);
}