Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / remref-1.C
bloba2c316aa9a95c3bdb4e9379b381ac764b577ac94
1 /* Verify that indirect-inlining induced removal of referenes will not remove
2    too many references in presence of speculative devirtualization.  */
3 /* { dg-do link } */
4 /* { dg-options "-O3 -fno-early-inlining"  } */
6 class A
8   public:
9   virtual void foo(void (*)(void));
12 static
13 void b(void)
17 void
18 A::foo(void (*back)(void))
20   back();
23 class A *a;
25 void __attribute__ ((noinline, noclone))
26 allocate_a ()
28   a = new A();
31 int main()
33   allocate_a();
34   for (int i=0; i<10000;i++)
35     a->foo(b);