1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-ipa-cp-details" } */
10 extern const S
*es
, *fs
;
12 static int __attribute__((noinline
))
13 foo (const S f
, int x
)
15 es
= &f
; /* This disables IPA-SRA */
16 x
= f
.call(x
+f
.add_offset
);
22 static int __attribute__((noinline
))
23 bar (const S f
, int x
)
25 fs
= &f
; /* This disables IPA-SRA */
35 static const S s
= {16, sq
};
43 /* { dg-final { scan-ipa-dump-times "Discovered an indirect call to a known target" 3 "cp" } } */