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
/
pr36185.C
blob
2ffa52f8e864435629608add4e8cb87028599889
1
// PR rtl-optimization/36185
2
// { dg-do run }
3
// { dg-options "-O2 -fgcse-sm" }
4
5
struct Base {
6
virtual ~Base() {}
7
virtual void f() = 0;
8
};
9
struct Derived : Base {
10
Derived();
11
virtual void f() {}
12
};
13
struct Foo {
14
Foo(Base&);
15
};
16
Derived::Derived() {
17
Foo foo(*this);
18
}
19
Foo::Foo(Base& base) {
20
base.f();
21
}
22
int main() {
23
Derived d;
24
}