summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noreturn-3.c
blob: 3e727d25f4a41ef39f3b067d26e1a7ce118e62f9 (plain)
1
2
3
4
5
6
7
8
9
10
/* Check for no "noreturn" warning in main. */
/* { dg-do compile } */
/* { dg-options "-O2 -Wmissing-noreturn -fhosted" } */
extern void exit (int) __attribute__ ((__noreturn__));

int
main (void)
{
  exit (0);
}