rt_gccstream/gcc/testsuite/c-c++-common/pr42674.c

14 lines
227 B
C

/* 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 ();
}