summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/spu/Wmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/spu/Wmain.c')
-rw-r--r--gcc/testsuite/gcc.target/spu/Wmain.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/spu/Wmain.c b/gcc/testsuite/gcc.target/spu/Wmain.c
new file mode 100644
index 000000000..58eca021b
--- /dev/null
+++ b/gcc/testsuite/gcc.target/spu/Wmain.c
@@ -0,0 +1,7 @@
+/* { dg-do compile } */
+/* { dg-options "-Wmain -mstdmain" } */
+
+int main (void *wrong)/* { dg-warning "first argument of 'main' should be 'int'" "" } */
+{
+ /* { dg-warning "'main' takes only zero or two arguments" "" { target *-*-* } 4 } */
+}