re PR testsuite/25422 (gcc.dg/20031012-1.c and gcc.dg/weak/weak-3.c (and a couple others) fails, forgot to update for new option, -Walways-true)

PR testsuite/25422
	* gcc.dg/20031012-1.c: Add -Walways-true option.
	* gcc.dg/weak/weak-3.c: Likewise.
	* g++.old-deja/g++.mike/warn8.C: Likewise.

From-SVN: r108689
This commit is contained in:
Ben Elliston 2005-12-16 22:12:55 +00:00 committed by Ben Elliston
parent 3380b80294
commit f3a1a6532f
4 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2005-12-15 Ben Elliston <bje@au.ibm.com>
PR testsuite/25422
* gcc.dg/20031012-1.c: Add -Walways-true option.
* gcc.dg/weak/weak-3.c: Likewise.
* g++.old-deja/g++.mike/warn8.C: Likewise.
2005-12-16 Mike Stump <mrs@apple.com>
* gcc.c-torture/compile/920415-1.c: Add declaration for abort and

View File

@ -1,4 +1,5 @@
// { dg-do assemble }
// { dg-options "-Walways-true" }
struct foo {
bool test();

View File

@ -1,3 +1,4 @@
/* { dg-options "-Walways-true" } */
/* Origin: Andrew Morton <akpm@osdl.org> */
/* Warn if a function addres of a non-weak function is used
as a truth value. */

View File

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-require-alias "" } */
/* { dg-require-weak "" } */
/* { dg-options "-fno-common" } */
/* { dg-options "-fno-common -Walways-true" } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?ffoo1a" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?ffoo1b" } } */