From 1b8afbe758f37cc69e23215f343958f5f0218e08 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 6 Feb 2002 12:15:53 +0000 Subject: [PATCH] Expect the compilation to fail because the COFF format does not support the weak attribute. From-SVN: r49544 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/g++.dg/warn/weak1.C | 2 ++ gcc/testsuite/g++.old-deja/g++.ext/attrib5.C | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 34d4afddd9a..44fbcd9661e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2002-02-06 Nick Clifton + + * g++.dg/warn/weak1.C: Expect a warning from COFF toolchains, + and do not expect to be able to link the executable. + + * g++.old-deja/g++.ext/attrib5.C: Expect the compilation to + fail because the COFF format does not support the weak attribute. + 2002-02-05 David Billinghurst * g77.dg/pr5473.f: New test diff --git a/gcc/testsuite/g++.dg/warn/weak1.C b/gcc/testsuite/g++.dg/warn/weak1.C index 192f6dcdf26..a7d8cfb37cd 100644 --- a/gcc/testsuite/g++.dg/warn/weak1.C +++ b/gcc/testsuite/g++.dg/warn/weak1.C @@ -1,4 +1,6 @@ // { dg-do run } +// { dg-do compile { target *-*-coff } } +// { dg-warning "weak declaration" "COFF format does not support weak" { target *-*-coff } 5 } extern void foo (void) __attribute__ ((weak)); diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C index b1530592cd1..76fea4639b9 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C @@ -1,5 +1,5 @@ // Test that attributes weak and alias coexist. -// excess errors test - XFAIL alpha*-dec-osf* *-*-hms i?86-pc-cygwin +// excess errors test - XFAIL alpha*-dec-osf* *-*-hms i?86-pc-cygwin *-*-coff extern "C" { void f () __attribute__((weak, alias ("_f"))); -- 2.30.2