summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr12603.c
blob: f7caef28416c5a2c7271ca12f0fca069f4e1c85c (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" } */
int
this_function_never_returns ()
{
  for (;;);
}