weak attribute.
From-SVN: r49544
+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
// { 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));
// 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")));