From 5bcf08f63e0f1d5465387181ec9d23ed2d0729d5 Mon Sep 17 00:00:00 2001 From: David Billinghurst Date: Sun, 24 Mar 2002 23:52:20 +0000 Subject: [PATCH] weak-1.c: Early return from dg-final on platforms that do not support weak symbols 2002-03-25 David.Billinghurst * gcc.dg/weak-1.c: Early return from dg-final on platforms that do not support weak symbols From-SVN: r51280 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/weak-1.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8ee75ef5b1f..cd89905548d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-03-25 David Billinghurst + + * gcc.dg/weak-1.c: Early return from dg-final on platforms + that do not support weak symbols + 2002-03-25 David Billinghurst * lib/g++.exp: Fix handling of LD_LIBRARY_PATH et al diff --git a/gcc/testsuite/gcc.dg/weak-1.c b/gcc/testsuite/gcc.dg/weak-1.c index 894a248a6f9..7273bec1734 100644 --- a/gcc/testsuite/gcc.dg/weak-1.c +++ b/gcc/testsuite/gcc.dg/weak-1.c @@ -2,6 +2,9 @@ /* COFF does not support weak, and dg doesn't support UNSUPPORTED. */ /* { dg-do compile { xfail *-*-coff i?86-pc-cygwin } } */ +/* { dg-final { global target_triplet } } */ +/* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */ +/* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t]_?a" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t]_?b" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t]_?c" } } */