aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2006-10-29 16:43:50 +0000
committerJoseph Myers <joseph@codesourcery.com>2006-10-29 16:43:50 +0000
commit46834f5666853ebd0430c707225c8459f718662f (patch)
tree28b4c9e2f83fd740df929659e06f190e82892ba0 /gcc/testsuite
parent9798370ce37b19286df8c35702222b52c3374ac1 (diff)
libstdc++-v3/
* testsuite/config/default.exp (${tool}_target_compile): Use v3_target_compile. gcc/testsuite/ * lib/target-supports.exp (check_function_available): Declare function before calling. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/csl/sourcerygxx-4_1@118150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/lib/target-supports.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index bada6b467d6..93ddffd1048 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -943,6 +943,8 @@ proc check_function_available { function } {
set exe "function[pid].exe"
set f [open $src "w"]
+ puts $f "#ifdef __cplusplus\nextern \"C\"\n#endif\n"
+ puts $f "char $function ();\n"
puts $f "int main () { $function (); }"
close $f