projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
emit-rtl.c (try_split): Don't call copy_call_info debug hook.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
dwarf2
/
icf.C
1
// { dg-do compile }
2
// { dg-options "-O1 -gdwarf-2 -gno-strict-dwarf -fno-inline -dA" }
3
4
class A
5
{
6
public:
7
A();
8
virtual void work();
9
virtual int p();
10
private:
11
int i;
12
};
13
14
class B
15
{
16
public:
17
B();
18
~B();
19
void work(const A* a);
20
private:
21
int j;
22
};
23
24
int
25
test1(A* a)
26
{
27
a->work();
28
}
29
30
int
31
test2(A* a)
32
{
33
if (a->p())
34
{
35
B b;
36
b.work(a);
37
}
38
}