| 1 |
# This harness is for tests that should be run at all optimisation levels. |
| 2 |
|
| 3 |
load_lib g++-dg.exp |
| 4 |
load_lib torture-options.exp |
| 5 |
|
| 6 |
global DG_TORTURE_OPTIONS LTO_TORTURE_OPTIONS |
| 7 |
|
| 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" |
| 12 |
} |
| 13 |
|
| 14 |
set DEFAULT_COROFLAGS $DEFAULT_CXXFLAGS |
| 15 |
lappend DEFAULT_COROFLAGS "-fcoroutines" "-std=c++17" |
| 16 |
|
| 17 |
dg-init |
| 18 |
torture-init |
| 19 |
|
| 20 |
set-torture-options [concat $DG_TORTURE_OPTIONS $LTO_TORTURE_OPTIONS] |
| 21 |
|
| 22 |
gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.C]] "" $DEFAULT_COROFLAGS |
| 23 |
|
| 24 |
torture-finish |
| 25 |
dg-finish |