1 /* Verify that ipa-cp correctly detects the dynamic type of an object
2 under construction when doing devirtualization. */
4 /* { dg-options "-O3 -fno-inline" } */
6 extern "C" void abort (void);
13 virtual int foo (int i);
19 virtual int foo (int i);
25 virtual int foo (int i);
43 static inline int __attribute__ ((always_inline))
44 middleman (class A *obj, int i)
49 int __attribute__ ((noinline,noclone)) get_input(void)
54 __attribute__ ((noinline)) A::A ()
56 if (middleman (this, get_input ()) != 2)
65 int main (int argc, char *argv[])
69 for (i = 0; i < 10; i++)