summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/torture/dg-torture.exp
blob: 9ef34e9953f9c2046cbbcea0c1d129286a0dacee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This harness is for tests that should be run at all optimisation levels.

load_lib obj-c++-dg.exp

dg-init

# Gather a list of all tests.
set tests [lsort [glob -nocomplain $srcdir/$subdir/*.mm]]
 
obj-c++-dg-runtest $tests "-fgnu-runtime"

# darwin targets can also run code with the NeXT runtime.
if [istarget "*-*-darwin*" ] {
  obj-c++-dg-runtest $tests "-fnext-runtime"
}

dg-finish