1 /* { dg-require-effective-target lto } */
2 /* { dg-lto-options { { -flto -O3 -fipa-cp -fipa-cp-clone } } } */
3 /* { dg-lto-do run } */
5 /* In order to trigger IPA-CP cloning we have to:
7 1. Put the calls in main into a loop; otherwise everything is
8 cold and we would not clone.
10 2. Make different foos and bars actually semantically different;
11 otherwise IPA-ICF unified them (as it should).
17 void __attribute__ ((noipa
))
23 static int __attribute__ ((noinline
))
29 static int __attribute__ ((noinline
))
35 extern int __attribute__ ((noinline
))
38 int __attribute__ ((noipa
))
39 get_opaque_number (void)
47 for (i
= 0; i
< get_opaque_number (); i
++)