pr30551-6.c: Skip for SPU.

2008-08-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

testsuite/
	* gcc.dg/pr30551-6.c: Skip for SPU.
	* gcc.dg/pr30551-3.c: Likewise.
	* gcc.dg/pr30551.c: Likewise.
	* g++.dg/warn/pr30551-2.C: Likewise.
	* g++.dg/warn/pr30551.C: Likewise.

From-SVN: r139126
parent 0490fbb8
2008-08-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* gcc.dg/pr30551-6.c: Skip for SPU.
* gcc.dg/pr30551-3.c: Likewise.
* gcc.dg/pr30551.c: Likewise.
* g++.dg/warn/pr30551-2.C: Likewise.
* g++.dg/warn/pr30551.C: Likewise.
2008-08-14 Janus Weil <janus@gcc.gnu.org> 2008-08-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/36705 PR fortran/36705
......
// PR 30551 -Wmain is enabled by -pedantic/-pedantic-errors. // PR 30551 -Wmain is enabled by -pedantic/-pedantic-errors.
// { dg-do compile } // { dg-do compile }
// { dg-options "-pedantic-errors" } // { dg-options "-pedantic-errors" }
// { dg-skip-if "-Wmain not enabled with -pedantic on SPU" { spu-*-* } }
int main(char a) {} /* { dg-error "error: first argument of .*main.* should be .int." } */ int main(char a) {} /* { dg-error "error: first argument of .*main.* should be .int." } */
/* { dg-error "error: .*main.* takes only zero or two arguments" "" { target *-*-* } 5 } */ /* { dg-error "error: .*main.* takes only zero or two arguments" "" { target *-*-* } 5 } */
// PR 30551 -Wmain is enabled by default. // PR 30551 -Wmain is enabled by default.
// { dg-do compile } // { dg-do compile }
// { dg-options "" } // { dg-options "" }
// { dg-skip-if "-Wmain not enabled on SPU" { spu-*-* } }
int main(char a) {} /* { dg-warning "warning: first argument of .*main.* should be .int." } */ int main(char a) {} /* { dg-warning "warning: first argument of .*main.* should be .int." } */
/* { dg-warning "warning: .*main.* takes only zero or two arguments" "" { target *-*-* } 5 } */ /* { dg-warning "warning: .*main.* takes only zero or two arguments" "" { target *-*-* } 5 } */
/* PR 30551 -Wmain is enabled by -pedantic-errors. */ /* PR 30551 -Wmain is enabled by -pedantic-errors. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-pedantic-errors" } */ /* { dg-options "-pedantic-errors" } */
/* { dg-skip-if "-Wmain not enabled with -pedantic on SPU" { spu-*-* } } */
void main(char a) {} /* { dg-error "first argument of .main. should be .int." } */ void main(char a) {} /* { dg-error "first argument of .main. should be .int." } */
/* { dg-error ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */ /* { dg-error ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */
/* { dg-error "return type of .main. is not .int." "" { target *-*-* } 5 } */ /* { dg-error "return type of .main. is not .int." "" { target *-*-* } 5 } */
/* PR 30551 -Wmain is enabled by -pedantic. */ /* PR 30551 -Wmain is enabled by -pedantic. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-pedantic" } */ /* { dg-options "-pedantic" } */
/* { dg-skip-if "-Wmain not enabled with -pedantic on SPU" { spu-*-* } } */
void main(char a) {} /* { dg-warning "first argument of .main. should be .int." } */ 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 ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */
/* { dg-warning "return type of .main. is not .int." "" { target *-*-* } 5 } */ /* { dg-warning "return type of .main. is not .int." "" { target *-*-* } 5 } */
/* PR 30551 -Wmain is enabled by -Wall. */ /* PR 30551 -Wmain is enabled by -Wall. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-Wall" } */ /* { 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." } */ 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 ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */
/* { dg-warning "return type of .main. is not .int." "" { target *-*-* } 5 } */ /* { dg-warning "return type of .main. is not .int." "" { target *-*-* } 5 } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment