1 /* Test inline main, gnu99 mode, hosted, -pedantic-errors. */
2 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu99 -fhosted -pedantic-errors" } */
5
6 inline int main (void); /* { dg-error "cannot inline function 'main'" } */
7