blob: 4e4620791e87e057bac297762eacb884ba0d237a [file] [log] [blame]
# 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 -Wno-objc-root-class"
# darwin targets can also run code with the NeXT runtime.
if [istarget "*-*-darwin*" ] {
obj-c++-dg-runtest $tests "" "-fnext-runtime -Wno-objc-root-class"
}
dg-finish