summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-3.c
blob: 05a37f8102782afcbcbc66b67f052a26b2e8e984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int baz (void);
static int
foo (int x)
{
  if (__builtin_expect (x <= 0, 0))
    {
      __builtin_printf ("foo\n");
      __builtin_printf ("foo\n");
      __builtin_printf ("foo\n");
      __builtin_abort ();
    }
  return 6;
}

int a,b,c;

int
bar (int x)
{
  return foo (a) + foo (b) + foo (c);
}