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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [covariant1.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-w" }
3
 
4
// If a covariant thunk is overriding a virtual primary base, we have to
5
// use the vcall offset even though we know it will be 0.
6
 
7
struct c4 {};
8
 
9
struct c6 : c4 { virtual c4* f17(); };
10
 
11
c4* c6::f17() { return 0; }
12
 
13
struct c11 : virtual c6 { int i; };
14
 
15
struct c12 : c11 { };
16
 
17
struct c14 :
18
  virtual c12,
19
  virtual c11 { virtual void f(); c12* f17(); };
20
 
21
void c14::f() { }
22
 
23
// { dg-final { scan-assembler "_ZTcv0_n12_v0_n16_N3c143f17Ev" { target { ilp32  && { ! { ia64-*-hpux* } } } } } }
24
// { dg-final { scan-assembler-not "_ZTch0_v0_n16_N3c143f17Ev" } }
25
// { dg-final { scan-assembler "_ZTcv0_n24_v0_n32_N3c143f17Ev" { target { lp64  || { ia64-*-hpux* } } } } }
26
// { dg-final { scan-assembler-not "_ZTch0_v0_n32_N3c143f17Ev" } }

powered by: WebSVN 2.1.0

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