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

int x, y;

static inline int
z ()
{
  return x ? y : 0;
}

int
lower_for (int j)
{
  return j % z ();
}

/* { dg-final { scan-tree-dump-times "__builtin_trap" 1 "isolate-paths"} } */