1 /* Verify that simple virtual calls on an object refrence are inlined
2 even without early inlining. */
3 /* { dg-do run { target nonpic } } */
4 /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
6 extern "C" void abort (void);
12 virtual int foo (int i);
18 virtual int foo (int i);
24 virtual int foo (int i);
42 int middleman (class A &obj, int i)
47 int __attribute__ ((noinline,noclone)) get_input(void)
52 int main (int argc, char *argv[])
57 for (i = 0; i < get_input (); i++)
58 if (middleman (b, get_input ()) != 3)
63 /* { dg-final { scan-ipa-dump "B::foo\[^\\n\]*inline copy in int main" "inline" } } */