C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / g++.dg / harden-cfr-throw-always-O0.C
blobe3c109b89c56abbaed5e353890d077b4d9710515
1 /* { dg-do compile } */
2 /* { dg-options "-fharden-control-flow-redundancy -fhardcfr-check-noreturn-calls=always -fdump-tree-hardcfr -ffat-lto-objects -O0" } */
4 /* Check that we insert cleanups for checking around the bodies of
5    maybe-throwing functions, and also checking before noreturn
6    calls.  h2 and h2b get an extra resx without ehcleanup.  */
8 #define NO_OPTIMIZE
10 #include "torture/harden-cfr-throw.C"
12 /* { dg-final { scan-tree-dump-times "hardcfr_check" 16 "hardcfr" } } */
13 /* { dg-final { scan-tree-dump-times "builtin_trap" 1 "hardcfr" } } */