1# This harness is for tests that should be run at all optimisation levels.
2
3load_lib obj-c++-dg.exp
4
5dg-init
6
7# Gather a list of all tests.
8set tests [lsort [glob -nocomplain $srcdir/$subdir/*.mm]]
9
10obj-c++-dg-runtest $tests "" "-fgnu-runtime"
11
12# darwin targets can also run code with the NeXT runtime.
13if [istarget "*-*-darwin*" ] {
14  obj-c++-dg-runtest $tests "" "-fnext-runtime"
15}
16
17dg-finish
18