Expect the compilation to fail because the COFF format does not support the
authorNick Clifton <nickc@cambridge.redhat.com>
Wed, 6 Feb 2002 12:15:53 +0000 (12:15 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 6 Feb 2002 12:15:53 +0000 (12:15 +0000)
weak attribute.

From-SVN: r49544

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/weak1.C
gcc/testsuite/g++.old-deja/g++.ext/attrib5.C

index 34d4afddd9ad3a73b1ae4a4e364ec99ac9a7d0ef..44fbcd9661e9ce04be498ae5a34bd3622625fb6d 100644 (file)
@@ -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
index 192f6dcdf263100684d1156a3fdb584f21978369..a7d8cfb37cdb3e808c34e9bca2d2b2a7909a12cf 100644 (file)
@@ -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));
 
index b1530592cd1daccb4bec89a15854d899b02c11f7..76fea4639b99c5a568331500c435a813b3339c17 100644 (file)
@@ -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")));