summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/inline-9.c
blob: c8dda536014569d422302ffc73928b8886f892ea (plain)
1
2
3
4
5
6
/* Test inline main, gnu99 mode, hosted, -pedantic-errors.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -fhosted -pedantic-errors" } */

inline int main (void); /* { dg-error "cannot inline function 'main'" } */