summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/spu/Wmain.c
blob: 58eca021bf3ff330b3f72704486723ed842ce9ca (plain)
1
2
3
4
5
6
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 } */
}