1 # This harness is
for tests that should be run at all optimisation levels.
4 load_lib torture
-options.exp
6 global DG_TORTURE_OPTIONS LTO_TORTURE_OPTIONS
8 #
If a testcase doesn
't have special options, use these.
9 global DEFAULT_CXXFLAGS
10 if ![info exists DEFAULT_CXXFLAGS] then {
11 set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long"
14 set DEFAULT_COROFLAGS $DEFAULT_CXXFLAGS
15 lappend DEFAULT_COROFLAGS "-fcoroutines" "-std=c++17"
20 set-torture-options [concat $DG_TORTURE_OPTIONS $LTO_TORTURE_OPTIONS]
22 gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.C]] "" $DEFAULT_COROFLAGS