PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / libgo / testsuite / lib / libgo.exp
blob1b0f26a68845169d27ba962a09235bd601f8029c
1 # Copyright (C) 2010 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with GCC; see the file COPYING3. If not see
15 # <http://www.gnu.org/licenses/>.
17 set gccdir [lookfor_file $tool_root_dir gcc/libgcc.a]
18 if {$gccdir != ""} {
19 set gccdir [file dirname $gccdir]
21 set GOC_UNDER_TEST "$gccdir/gccgo -B$gccdir/"
22 set TESTING_IN_BUILD_TREE 1
24 if [info exists GOTEST_TMPDIR] {
25 set tmpdir $GOTEST_TMPDIR
28 proc go_maybe_build_wrapper { args } {
29 libgo_maybe_build_wrapper $args
32 # DejaGnu does not have proper library search paths for load_lib.
33 # We have to explicitly load everything that go.exp wants to load.
35 proc load_gcc_lib { filename } {
36 global srcdir loaded_libs
38 load_file $srcdir/../../gcc/testsuite/lib/$filename
39 set loaded_libs($filename) ""
42 load_gcc_lib multiline.exp
43 load_gcc_lib prune.exp
44 load_gcc_lib target-libpath.exp
45 load_gcc_lib wrapper.exp
46 load_gcc_lib target-supports.exp
47 load_gcc_lib target-utils.exp
48 load_gcc_lib gcc-defs.exp
49 load_gcc_lib timeout.exp
50 load_gcc_lib go.exp
52 proc libgo_init { args } {
53 go_init $args