111
|
1 // { dg-do compile }
|
|
2 // { dg-options "-O -fpartial-inlining -flto -fconserve-stack -fcompare-debug" }
|
|
3 // { dg-require-effective-target lto }
|
|
4 // { dg-xfail-if "" { powerpc-ibm-aix* } }
|
|
5
|
|
6 void end (int, int) __attribute__ ((__noreturn__));
|
|
7
|
|
8 struct S
|
|
9 {
|
|
10 int i;
|
|
11 S *s;
|
|
12 };
|
|
13
|
|
14 inline bool f (S *s)
|
|
15 {
|
|
16 if (!s->s)
|
|
17 end (0, 0);
|
|
18 return s->s == s;
|
|
19 }
|
|
20
|
|
21 inline bool
|
|
22 baz (S s1, S)
|
|
23 {
|
|
24 while (f (&s1));
|
131
|
25
|
|
26 return true;
|
111
|
27 }
|
|
28
|
|
29 inline bool
|
|
30 bar (S s1, S s2, S)
|
|
31 {
|
131
|
32 return baz (s1, s2);
|
111
|
33 }
|
|
34
|
|
35 S getS ();
|
|
36
|
|
37 bool
|
|
38 foo ()
|
|
39 {
|
131
|
40 return bar (getS (), getS (), getS ());
|
111
|
41 }
|