gcc/testsuite/g++.dg/harden-cfr-throw-returning-O0.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fharden-control-flow-redundancy -foptimize-sibling-calls -fdump-tree-hardcfr -O0" } */ |
| 3 | |
| 4 | /* -fhardcfr-check-returning-calls gets implicitly disabled because, |
| 5 | -at O0, -foptimize-sibling-calls has no effect. */ |
| 6 | |
| 7 | #define NO_OPTIMIZE |
| 8 | |
| 9 | #include "torture/harden-cfr-throw.C" |
| 10 | |
| 11 | /* { dg-final { scan-tree-dump-times "hardcfr_check" 12 "hardcfr" } } */ |
| 12 | /* { dg-final { scan-tree-dump-times "builtin_trap" 1 "hardcfr" } } */ |