testsuite: don't declare printf in coro.h
[official-gcc.git] / gcc / testsuite / g++.dg / coroutines / torture / coro-torture.exp
blob2246f7154beddbebb1a956b28c5ac56388e2d977
1 # This harness is for tests that should be run at all optimisation levels.
3 load_lib g++-dg.exp
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"
17 dg-init
18 torture-init
20 set-torture-options [concat $DG_TORTURE_OPTIONS $LTO_TORTURE_OPTIONS]
22 gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.C]] "" $DEFAULT_COROFLAGS
24 torture-finish
25 dg-finish