Debian Codegraph @

gcc/testsuite/g++.dg/harden-cfr-throw-returning-enabled-O0.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fharden-control-flow-redundancy -fhardcfr-check-returning-calls -fdump-tree-hardcfr -O0" } */
3
4 /* Explicitly enable -fhardcfr-check-returning-calls -at O0. */
5
6 #include "torture/harden-cfr-throw.C"
7
8 /* Same expectations as those in torture/harden-cfr-throw-returning.C. */
9
10 /* { dg-final { scan-tree-dump-times "hardcfr_check" 10 "hardcfr" } } */
11 /* { dg-final { scan-tree-dump-times "builtin_trap" 2 "hardcfr" } } */