OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.target/] [arm/] [pr27387.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* PR target/90000
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 arm32 } */
7
/* { dg-options "-mthumb -fPIC" } */
8
 
9
struct A {
10
  virtual void f ();
11
};
12
 
13
struct B {
14
  virtual void g ();
15
};
16
 
17
struct C : public A, public B {
18
  virtual void g();
19
};
20
 
21
void
22
C::g()
23
{
24
}
25
 
26
/* { dg-final { scan-assembler "LTHUNKPC" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.