view gcc/testsuite/c-c++-common/pr42674.c @ 16:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* PR middle-end/42674 */
/* { dg-do compile } */
/* { dg-options "-Wreturn-type" } */

extern void bar (void);
static int foo (void) __attribute__ ((__noreturn__, __used__));

static int
foo (void)
{
  while (1)
    bar ();
}