Debian Codegraph @

gcc/testsuite/g++.dg/torture/harden-cfr-throw-nocleanup.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fharden-control-flow-redundancy -fhardcfr-check-noreturn-calls=never -fno-hardcfr-check-exceptions -fno-hardcfr-check-returning-calls -fdump-tree-hardcfr -ffat-lto-objects" } */
3
4 /* Check that we do not insert cleanups for checking around the bodies
5 of maybe-throwing functions. h4 doesn't get any checks, because we
6 don't have noreturn checking enabled. */
7
8 #include "harden-cfr-throw.C"
9
10 /* { dg-final { scan-tree-dump-times "hardcfr_check" 0 "hardcfr" } } */
11 /* { dg-final { scan-tree-dump-times "builtin_trap" 6 "hardcfr" } } */