summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/pr30551.C
blob: 6d7f662c17e09364921f0d42096e52b7a299c83f (plain)
1
2
3
4
5
6
// PR 30551 -Wmain is enabled by default.
// { dg-do compile }
// { dg-options "" }
// { dg-skip-if "-Wmain not enabled on SPU" { spu-*-* } } 
int main(char a) {} /* { dg-warning "first argument of .*main.* should be .int." } */
/* { dg-warning "main.* takes only zero or two arguments" "" { target *-*-* } 5 } */