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
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
pr69133_0.C
blob
bd667074b7b6e242dc81a873ca36602ddbadb5db
1
// { dg-lto-do link }
2
// { dg-lto-options { { -flto -O2 } } }
3
// { dg-extra-ld-options "-r -nostdlib -flto -flto-partition=none -O2" }
4
namespace xercesc_3_1 {
5
class XMLEntityHandler {
6
public:
7
virtual ~XMLEntityHandler();
8
virtual void m_fn1();
9
virtual bool m_fn2();
10
virtual void m_fn3();
11
virtual int m_fn4();
12
virtual void m_fn5();
13
} * a;
14
void fn1() {
15
a->m_fn5();
16
a->m_fn1();
17
}
18
}
19