gcc/testsuite/c-c++-common/torture/harden-cfr-notail.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fharden-control-flow-redundancy -fno-hardcfr-check-exceptions -fno-hardcfr-check-returning-calls -fdump-tree-hardcfr -ffat-lto-objects" } */ |
| 3 | |
| 4 | #include "harden-cfr-tail.c" |
| 5 | |
| 6 | /* Inline checking after the calls, disabling tail calling. */ |
| 7 | /* { dg-final { scan-tree-dump-times "__builtin_trap" 5 "hardcfr" } } */ |
| 8 | /* { dg-final { scan-tree-dump-times "Inserting inline check before stmt" 0 "hardcfr" } } */ |