repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr81462.C
blob
044c8b78ee5054be60c313c07cdad0dcf2a1bf05
1
// { dg-do compile }
2
// { dg-options "-O1 -fno-ipa-pure-const" }
3
struct B {
4
B* self;
5
B() : self( this ) { self->f(); }
6
virtual void f() = 0;
7
};
8
9
struct D : B
10
{
11
void f() {}
12
};
13
14
int main()
15
{
16
D d;
17
}