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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle1.C] - Blame information for rev 832

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

Line No. Rev Author Line
1 149 jeremybenn
// Test for mangling of simple testcase involving construction vtables.
2
 
3
// { dg-do compile }
4
// { dg-options "-fno-inline" }
5
 
6
struct A {
7
  virtual void f () { }
8
};
9
 
10
struct B: public virtual A { };
11
struct C: public B { };
12
 
13
C c;
14
 
15
// { dg-final { scan-assembler "\n_?_ZN1A1fEv\[: \t\n\]" } }
16
// { dg-final { scan-assembler "\n_?_ZN1AC2Ev\[: \t\n\]" } }
17
// { dg-final { scan-assembler "\n_?_ZN1BC2Ev\[: \t\n\]" } }
18
// { dg-final { scan-assembler "\n_?_ZN1CC1Ev\[: \t\n\]" } }
19
// { dg-final { scan-assembler "\n_?_ZTC1C0_1B\[: \t\n\]" } }
20
// { dg-final { scan-assembler "\n_?_ZTI1A\[: \t\n\]" } }
21
// { dg-final { scan-assembler "\n_?_ZTI1B\[: \t\n\]" } }
22
// { dg-final { scan-assembler "\n_?_ZTI1C\[: \t\n\]" } }
23
// { dg-final { scan-assembler "\n_?_ZTS1A\[: \t\n\]" } }
24
// { dg-final { scan-assembler "\n_?_ZTS1B\[: \t\n\]" } }
25
// { dg-final { scan-assembler "\n_?_ZTS1C\[: \t\n\]" } }
26
// { dg-final { scan-assembler "\n_?_ZTT1C\[: \t\n\]" } }
27
// { dg-final { scan-assembler "\n_?_ZTV1A\[: \t\n\]" } }
28
// { dg-final { scan-assembler "\n_?_ZTV1C\[: \t\n\]" } }

powered by: WebSVN 2.1.0

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