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
Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr59622-3.C
blob
94d66aafe6b3140ccc4fb4ddf3922cabc1ad5f57
1
// PR tree-optimization/59622
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
struct C { int a; int b; };
6
7
namespace
8
{
9
struct A
10
{
11
virtual C foo (); // { dg-warning "used but never defined" }
12
C bar () { return foo (); }
13
};
14
}
15
16
C
17
baz ()
18
{
19
A a;
20
return a.bar ();
21
}