Commit f3a1a653 by Ben Elliston Committed by Ben Elliston

re PR testsuite/25422 (gcc.dg/20031012-1.c and gcc.dg/weak/weak-3.c (and a…

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
parent 3380b802
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
// { dg-do assemble }
// { dg-options "-Walways-true" }
struct foo {
bool test();
......
/* { 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. */
......
/* { 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" } } */
......
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