diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr30551-5.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr30551-5.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr30551-5.c b/gcc/testsuite/gcc.dg/pr30551-5.c new file mode 100644 index 000000000..060ed016b --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr30551-5.c @@ -0,0 +1,7 @@ +/* PR 30551 -Wmain is enabled by -pedantic and can be disabled. */ +/* { dg-do compile } */ +/* { dg-options "-pedantic -Wno-main" } */ + +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 } */ |