Debian Codegraph @

gcc/testsuite/g++.dg/eh/noncall-fp-1.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fnon-call-exceptions -fdump-tree-optimized" } */
3
4 /* PR tree-optimization/117234 */
5 /* PAREN_EXPR should not be declared as trapping. */
6
7 float f1(float a)
8 {
9 try {
10 return __builtin_assoc_barrier (a);
11 } catch(...)
12 { __builtin_trap (); }
13 }
14
15 /* { dg-final { scan-tree-dump-not "__builtin_trap" "optimized" } } */