aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/Wreturn-type2.c
blob: 781414a1ae0767520cf3abd1f0bbff00a9d15804 (plain)
1
2
3
4
5
6
7
8
9
/* Test for cases that should not get the unconditional warning about
   missing return.  */
/* { dg-do compile } */

extern void abort (void);

f() {}				/* { dg-bogus "" "no return warning" } */
int g() { abort (); }		/* { dg-bogus "" "no return warning" } */
int main() {}			/* { dg-bogus "" "no return warning" } */