/* { dg-do compile } */ /* { dg-options "-fharden-control-flow-redundancy -fhardcfr-check-noreturn-calls=always -fdump-tree-hardcfr -ffat-lto-objects" } */ /* Check that C++ does NOT make for implicit nothrow in noreturn handling. */ #include "harden-cfr-noret-no-nothrow.C" /* All 3 noreturn calls. */ /* { dg-final { scan-tree-dump-times "Bypassing cleanup" 3 "hardcfr" } } */ /* Out-of-line checks in f. */ /* { dg-final { scan-tree-dump-times "Inserting out-of-line check in block \[0-9]*'s edge to exit" 1 "hardcfr" } } */ /* { dg-final { scan-tree-dump-times "hardcfr_check" 2 "hardcfr" } } */ /* Inline checks in h and h2. */ /* { dg-final { scan-tree-dump-times "Inserting inline check before stmt" 2 "hardcfr" } } */ /* { dg-final { scan-tree-dump-times "__builtin_trap" 2 "hardcfr" } } */