Expect the compilation to fail because the COFF format does not support the
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Feb 2002 12:15:53 +0000 (12:15 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Feb 2002 12:15:53 +0000 (12:15 +0000)
weak attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49544 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 34d4afd..44fbcd9 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 192f6dc..a7d8cfb 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 b153059..76fea46 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")));