aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@cambridge.redhat.com>2002-02-06 12:15:53 +0000
committerNick Clifton <nickc@gcc.gnu.org>2002-02-06 12:15:53 +0000
commit1b8afbe758f37cc69e23215f343958f5f0218e08 (patch)
tree2abe7f04dd28471f4443d0c53d72ce0ebec380b5
parent6662d4c337fffc5c2e5371a72dff90a06d2c3407 (diff)
downloadgcc-1b8afbe758f37cc69e23215f343958f5f0218e08.zip
gcc-1b8afbe758f37cc69e23215f343958f5f0218e08.tar.gz
gcc-1b8afbe758f37cc69e23215f343958f5f0218e08.tar.bz2
Expect the compilation to fail because the COFF format does not support the
weak attribute. From-SVN: r49544
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/g++.dg/warn/weak1.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/attrib5.C2
3 files changed, 11 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 34d4afd..44fbcd9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * 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 <David.Billinghurst@riotinto.com>
* 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 192f6dc..a7d8cfb 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 b153059..76fea46 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")));