repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In gcc/objc/: 2010-11-13 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
20081008_0.C
blob
258265a4fe13769177ee0270980668a557d241cc
1
// { 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
}