diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr30551.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr30551.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr30551.c b/gcc/testsuite/gcc.dg/pr30551.c new file mode 100644 index 000000000..218a50ad9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr30551.c @@ -0,0 +1,7 @@ +/* PR 30551 -Wmain is enabled by -Wall. */ +/* { dg-do compile } */ +/* { dg-options "-Wall" } */ +/* { dg-skip-if "-Wmain not enabled with -Wall on SPU" { spu-*-* } } */ +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 } */ |