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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [thunk8.C] - Blame information for rev 779

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
/* 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-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.