aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/isolate-7.c
blob: e63d5a032c1d88c1a29abc0f47053bbdded9b3c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-isolate-paths" } */

extern int oof ();
extern int x;
_Bool
gcd_of_steps_may_divide_p ()
{
  long cd = 0, val;
  if (x)
    cd = oof ();
  return val % cd == 0;
}
/* { dg-final { scan-tree-dump-times "__builtin_trap" 1 "isolate-paths"} } */