diff options
author | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-20 01:57:58 +0000 |
---|---|---|
committer | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-20 01:57:58 +0000 |
commit | bbc9f68c8fbe1fc31dfc2c934a95b9a0baeb4365 (patch) | |
tree | c69e5ea4c388fcc04fe68460bf777966befa68ab /gcc/testsuite/lib/treelang-dg.exp | |
parent | 88a86c80261df9e5d827738f8748d7e8cb32027c (diff) |
2004-01-18 James A. Morrison <ja2morri@uwaterloo.ca>
* lib/treelang.exp: Fill out this file.
* lib/treelang-dg.exp: New File.
treelang:
2004-01-18 James A. Morrison <ja2morri@uwaterloo.ca>
* compile/compile.exp: New File.
* compile/tabs.tree: Test whether the front end
compiles code with tabs in it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76194 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib/treelang-dg.exp')
-rw-r--r-- | gcc/testsuite/lib/treelang-dg.exp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/treelang-dg.exp b/gcc/testsuite/lib/treelang-dg.exp new file mode 100644 index 00000000000..1a4b4e1eac8 --- /dev/null +++ b/gcc/testsuite/lib/treelang-dg.exp @@ -0,0 +1,36 @@ +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004 +# 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 +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +load_lib gcc-dg.exp + +# Define gcc callbacks for dg.exp. + +proc treelang-dg-test { prog do_what extra_tool_flags } { + return [gcc-dg-test-1 treelang_target_compile $prog $do_what $extra_tool_flags] +} + +proc treelang-dg-prune { system text } { + return [gcc-dg-prune $system $text] +} + +# Utility routines. + +# Modified dg-runtest that can cycle through a list of optimization options +# as c-torture does. +proc treelang-dg-runtest { testcases default-extra-flags } { + return [gcc-dg-runtest $testcases ${default-extra-flags}] +} |