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

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