re PR c/5147 ([cygwin] Failure of test gcc.dg/special/wkali-1.c)

PR c/5147
        * gcc.dg/special/ecos.exp:  wkali-1.c unsupported if
        target does not support weak symbols.

From-SVN: r48191
This commit is contained in:
David Billinghurst 2001-12-20 00:32:08 +00:00 committed by Richard Henderson
parent 66866cda0e
commit 871c5f6b1d
2 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2001-12-19 David Billinghurst <David.Billinghurst@riotinto.com>
* gcc.dg/special/ecos.exp: wkali-1.c unsupported if
target does not support weak symbols.
2001-12-19 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/compile/20011219-1.c: New test.

View File

@ -97,13 +97,19 @@ dg-finish
# wkali-1.c
###########
dg-init
switch [check_alias_available "$srcdir/$subdir/wkali-1.c"] {
yes { dg-runtest "$srcdir/$subdir/wkali-1.c" "" "" }
no { unsupported "wkali-1.c" }
default { fail "wkali-1.c" }
if { [ check_weak_available ] == 1 } {
dg-init
switch [check_alias_available "$srcdir/$subdir/wkali-1.c"] {
yes { dg-runtest "$srcdir/$subdir/wkali-1.c" "" "" }
no { unsupported "wkali-1.c" }
default { fail "wkali-1.c" }
}
dg-finish
} elseif { [ check_weak_available ] == 0 } {
unsupported "wkali-1.c"
} else {
unresolved "wkali-1.c"
}
dg-finish
###########
# wkali-2.c