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
Sync with upstream 4.9 branch
[official-gcc.git]
/
embedded-4_9-branch
/
gcc
/
testsuite
/
g++.dg
/
lto
/
pr62026.C
blob
63766a85b986e4a72c73bb22ca7b23cae0c74a38
1
// { dg-lto-do link }
2
// { dg-lto-options {{-flto -O3 -r -nostdlib}} }
3
class C;
4
class F {
5
virtual C m_fn1();
6
};
7
class C {
8
public:
9
virtual int *m_fn3(int);
10
};
11
class G : F, C {
12
int offsets;
13
int *m_fn3(int);
14
};
15
C *a;
16
int *G::m_fn3(int) {
17
if (offsets) return 0;
18
}
19
20
void fn1() {
21
for (;;) a->m_fn3(0);
22
}