gcc/testsuite/g++.dg/tm/noexcept-7.C
raw| 1 | // FIXME the TS says atomic_noexcept calls abort, not terminate. |
| 2 | // Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'. |
| 3 | // { dg-options "-fgnu-tm" } |
| 4 | |
| 5 | void f() |
| 6 | { |
| 7 | atomic_noexcept { throw; } // { dg-warning "terminate" } |
| 8 | } |