blob: 2246f7154beddbebb1a956b28c5ac56388e2d977 [file] [log] [blame]
# This harness is for tests that should be run at all optimisation levels.
load_lib g++-dg.exp
load_lib torture-options.exp
global DG_TORTURE_OPTIONS LTO_TORTURE_OPTIONS
# If a testcase doesn't have special options, use these.
global DEFAULT_CXXFLAGS
if ![info exists DEFAULT_CXXFLAGS] then {
set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long"
}
set DEFAULT_COROFLAGS $DEFAULT_CXXFLAGS
lappend DEFAULT_COROFLAGS "-fcoroutines" "-std=c++17"
dg-init
torture-init
set-torture-options [concat $DG_TORTURE_OPTIONS $LTO_TORTURE_OPTIONS]
gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.C]] "" $DEFAULT_COROFLAGS
torture-finish
dg-finish