]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.dg/torture/torture.exp
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gdc.dg / torture / torture.exp
CommitLineData
99dee823 1# Copyright (C) 2020-2021 Free Software Foundation, Inc.
72ddef62
IB
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
17# This harness is for tests that should be run at all optimisation levels.
18
19# Load support procs.
20load_lib gdc-dg.exp
21
22# The default option list can be overridden by
23# TORTURE_OPTIONS="{ { list1 } ... { listN } }"
24
25if ![info exists TORTURE_OPTIONS] {
26 set TORTURE_OPTIONS [list \
27 { -O0 } { -O1 } { -O2 } { -O3 } { -Os } \
28 { -O0 -frelease } { -O0 -g } { -O0 -frelease -g } \
29 { -O1 -frelease } { -O1 -g } { -O1 -frelease -g } \
30 { -O2 -frelease } { -O2 -g } { -O2 -frelease -g } \
31 { -O3 -frelease } { -O3 -g } { -O3 -frelease -g } \
32 { -Os -frelease } { -Os -g } { -Os -frelease -g }]
33}
34
35# Initialize `dg'.
36dg-init
37
38# Initialize use of torture lists.
39torture-init
40set-torture-options $TORTURE_OPTIONS
41
42# Main loop.
43gdc-dg-runtest [lsort \
44 [glob -nocomplain $srcdir/$subdir/*.d ] ] "" ""
45
46# Finalize use of torture lists.
47torture-finish
48
49# All done.
50dg-finish