ecos.exp (wkali-2.c): Xfail if only weak aliases are supported.

2001-01-17  Jeffrey Oldham  <oldham@codesourcery.com>

	* gcc.dg/special/ecos.exp (wkali-2.c): Xfail if only weak aliases
	are supported.

From-SVN: r39106
This commit is contained in:
Jeffrey Oldham 2001-01-18 02:30:03 +00:00 committed by Jeffrey D. Oldham
parent d150822e55
commit acf8f04b16
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-01-17 Jeffrey Oldham <oldham@codesourcery.com>
* gcc.dg/special/ecos.exp (wkali-2.c): Xfail if only weak aliases
are supported.
2001-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* g++.old-deja/g++.other/builtins1.C: New test.

View File

@ -1,4 +1,4 @@
# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -116,7 +116,10 @@ if { [ check_weak_available ] == 1 } {
fail "wkali-2a.o"
} else {
set lines [gcc_target_compile "$srcdir/$subdir/wkali-2b.c" "wkali-2b.o" object ""]
if ![string match "" $lines] then {
if [string match "*only weak aliases*" $lines] then {
xfail "wkali-2b.o"
file delete $srcdir/$subdir/a.out
} elseif ![string match "" $lines] then {
fail "wkali-2b.o"
} else {
dg-runtest "$srcdir/$subdir/wkali-2.c" "wkali-2a.o wkali-2b.o" ""