aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr30551.c
blob: d6fdd8fab46e7568ecf8525bf6e1829ed1a6dd53 (plain)
1
2
3
4
5
6
7
/* PR 30551 -Wmain is enabled by -Wall.  */
/* { dg-do compile } */
/* { dg-options "-Wall" } */

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