c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / harden-cfr-throw-returning-O0.C
blob207bdb7471a4e2165c467c6fdc53038efe3c2800
1 /* { dg-do compile } */
2 /* { dg-options "-fharden-control-flow-redundancy -foptimize-sibling-calls -fdump-tree-hardcfr -O0" } */
4 /* -fhardcfr-check-returning-calls gets implicitly disabled because,
5    -at O0, -foptimize-sibling-calls has no effect.  */
7 #define NO_OPTIMIZE
9 #include "torture/harden-cfr-throw.C"
11 /* { dg-final { scan-tree-dump-times "hardcfr_check" 12 "hardcfr" } } */
12 /* { dg-final { scan-tree-dump-times "builtin_trap" 1 "hardcfr" } } */