1 /* { dg-do compile } */
2 /* { dg-options "-fharden-control-flow-redundancy -fhardcfr-check-noreturn-calls=always -fdump-tree-hardcfr -ffat-lto-objects -O0" } */
4 /* Check that we insert cleanups for checking around the bodies of
5 maybe-throwing functions, and also checking before noreturn
6 calls. h2 and h2b get an extra resx without ehcleanup. */
10 #include "torture/harden-cfr-throw.C"
12 /* { dg-final { scan-tree-dump-times "hardcfr_check" 16 "hardcfr" } } */
13 /* { dg-final { scan-tree-dump-times "builtin_trap" 1 "hardcfr" } } */