1 /* Verify that simple virtual calls using this pointer are converted
2 to direct calls by ipa-cp. */
4 /* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp" } */
6 extern "C" void abort (void);
12 virtual int foo (int i);
22 virtual int foo (int i);
28 virtual int foo (int i);
46 int __attribute__ ((noinline,noclone)) get_input(void)
51 int main (int argc, char *argv[])
55 for (i = 0; i < get_input(); i++)
56 if (b.middleman (get_input ()) != 3)
61 /* { dg-final { scan-ipa-dump "Discovered a virtual call to a known target.*B::foo" "cp" } } */
62 /* { dg-final { cleanup-ipa-dump "cp" } } */