1 /* { dg-options "-O2 -fdump-tree-optimized-blocks-details -fdump-ipa-profile-optimized -fdump-ipa-afdo-optimized" } */
18 void * __attribute__((noinline,noclone)) wrap (void *p) { return p; }
29 for (i = 0; i < 10000000; i++)
31 p = (A *)wrap ((void *)&a);
34 p = (B *)wrap ((void *)&b);
41 /* { dg-final-use-not-autofdo { scan-ipa-dump "Indirect call -> direct call.* AA .will resolve by ipa-profile" "profile" } } */
42 /* { dg-final-use-autofdo { scan-ipa-dump "Indirect call -> direct call.* AA .will resolve by ipa-profile" "afdo" } } */
43 /* { dg-final-use-not-autofdo { scan-tree-dump-not "Invalid sum" "optimized" } } */