No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / lib / treelang-dg.exp
blob6c646c31b62a8f113d8935a7addd922f2d9c7149
1 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004
2 # Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 load_lib gcc-dg.exp
20 # Define gcc callbacks for dg.exp.
22 proc treelang-dg-test { prog do_what extra_tool_flags } {
23 return [gcc-dg-test-1 treelang_target_compile $prog $do_what $extra_tool_flags]
26 proc treelang-dg-prune { system text } {
27 return [gcc-dg-prune $system $text]
30 # Utility routines.
32 # Modified dg-runtest that can cycle through a list of optimization options
33 # as c-torture does.
34 proc treelang-dg-runtest { testcases default-extra-flags } {
35 return [gcc-dg-runtest $testcases ${default-extra-flags}]