Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr48954.C
blobbdd1200049fa5c5030d76676c33ad4fd19a56743
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -flto -fno-early-inlining -fkeep-inline-functions" } */
3 /* { dg-require-effective-target lto } */
5 struct A
7   virtual void foo () = 0;
8 };
10 struct B : A {};
11 struct C : A {};
13 struct D: C, B
15   void foo () {}
18 static inline void
19 bar (B *b)
21   b->foo ();
24 int
25 main ()
27   D d;
28   for (;;)
29     bar (&d);