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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20081008_0.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-lto-do assemble }
2
// { dg-lto-options {{-flto}} }
3
 
4
struct Foo
5
{
6
 virtual void func() = 0;
7
};
8
 
9
struct Bar
10
{
11
 Foo *field;
12
 void func2();
13
};
14
 
15
struct Baz
16
{
17
 Bar &bar();
18
 Baz();
19
};
20
 
21
struct Zonk
22
{
23
 virtual ~Zonk() {
24
 }
25
 virtual void func3() = 0;
26
};
27
 
28
void Mumble(Zonk *) {
29
}
30
 
31
extern "C"
32
{
33
 void __attribute__ ((nothrow)) __cxa_pure_virtual() {
34
   Baz().bar().func2();
35
 }
36
}

powered by: WebSVN 2.1.0

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