PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / isolate-7.c
blobe63d5a032c1d88c1a29abc0f47053bbdded9b3c2
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-isolate-paths" } */
4 extern int oof ();
5 extern int x;
6 _Bool
7 gcd_of_steps_may_divide_p ()
9 long cd = 0, val;
10 if (x)
11 cd = oof ();
12 return val % cd == 0;
14 /* { dg-final { scan-tree-dump-times "__builtin_trap" 1 "isolate-paths"} } */