c++: constantness of call to function pointer [PR111703]
[official-gcc.git] / gcc / testsuite / g++.dg / torture / harden-cfr-throw-never.C
blob81c1b1abae6e93434b6605edf79aa6536b223a9e
1 /* { dg-do compile } */
2 /* { dg-options "-fharden-control-flow-redundancy -fno-hardcfr-check-returning-calls -fhardcfr-check-noreturn-calls=never -fdump-tree-hardcfr -ffat-lto-objects" } */
4 /* Check that we insert cleanups for checking around the bodies of
5    maybe-throwing functions, without checking before noreturn
6    calls.  */
8 #include "harden-cfr-throw.C"
10 /* { dg-final { scan-tree-dump-times "hardcfr_check" 12 "hardcfr" } } */
11 /* { dg-final { scan-tree-dump-times "builtin_trap" 1 "hardcfr" } } */
12 /* { dg-final { scan-tree-dump-times "Bypassing" 0 "hardcfr" } } */