1# Copyright (C) 2017-2020 Free Software Foundation, Inc.
2
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.
7#
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.
12#
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/>.
16
17load_gcc_lib multiline.exp
18load_gcc_lib prune.exp
19load_gcc_lib scandump.exp
20load_gcc_lib scanltranstree.exp
21load_gcc_lib scanwpaipa.exp
22load_gcc_lib file-format.exp
23load_gcc_lib scanasm.exp
24load_gcc_lib scanlang.exp
25load_gcc_lib scanrtl.exp
26load_gcc_lib scantree.exp
27load_gcc_lib scanipa.exp
28load_gcc_lib torture-options.exp
29load_gcc_lib timeout-dg.exp
30load_gcc_lib fortran-modules.exp
31load_gcc_lib gcc-dg.exp
32
33# Utility routines.
34
35#
36# libphobos_load -- wrapper around default libphobos_load to handle tests that
37# require program arguments passed to them.
38#
39
40if { [info procs libphobos_load] != [list] \
41      && [info procs prev_libphobos_load] == [list] } {
42    rename libphobos_load prev_libphobos_load
43
44    proc libphobos_load { program args } {
45	global libphobos_run_args
46	if { $libphobos_run_args != "" } {
47	    set args [concat "{$libphobos_run_args}"]
48	}
49	set result [eval [list prev_libphobos_load $program] $args ]
50	return $result
51    }
52}
53