1/* { dg-options "-O2 -fno-guess-branch-probability" } */
2
3int z;
4
5__attribute__((noinline))
6void g ()
7{
8  if (++z)
9    __builtin_exit (0);
10  g ();
11}
12
13__attribute__((noinline))
14void f ()
15{
16  if (++z)
17    __builtin_exit (0);
18  f ();
19}
20
21int main()
22{
23  f ();
24  g ();
25
26  return 0;
27}
28