1 /* PR target/27387
2    We used to generate a non-PIC thunk on thumb even with -fPIC.
3    Make sure that won't happen anymore.  */
4 
5 /* { dg-do compile } */
6 /* { dg-require-effective-target arm_thumb1_ok } */
7 /* { dg-require-effective-target fpic } */
8 /* { dg-options "-mthumb -fPIC" } */
9 
10 struct A {
11   virtual void f ();
12 };
13 
14 struct B {
15   virtual void g ();
16 };
17 
18 struct C : public A, public B {
19   virtual void g();
20 };
21 
22 void
g()23 C::g()
24 {
25 }
26 
27 /* { dg-final { scan-assembler "LTHUNKPC" } } */
28