1 /* We shall devirtualize to B::foo since it is the only live candidate of an
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fdump-ipa-whole-program-details" } */
22 void get_me_lost (void *);
35 get_me_lost ((void *)&b);
40 /* { dg-final { scan-ipa-dump "devirtualizing" "whole-program"} } */
41 /* { dg-final { scan-ipa-dump-not "builtin_unreachable" "whole-program"} } */
42 /* { dg-final { scan-ipa-dump "B::foo" "whole-program"} } */
43 /* { dg-final { scan-ipa-dump-not "A::foo" "whole-program"} } */
44 /* { dg-final { cleanup-ipa-dump "whole-program" } } */