aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/gcc.dg/pr30551-2.c
blob: fdd5df668687186baed5ab604e1723b183899612 (plain)
1
2
3
4
5
6
7
8
/* PR 30551 -Wmain is not enabled by default. */
/* { dg-do compile } */
/* { dg-options "" } */

void main(char a) {} /* { dg-bogus "first argument of .main. should be .int." } */
/* { dg-bogus ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */ 
/* { dg-bogus "return type of .main. is not .int." "" { target *-*-* } 5 } */