2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr81462.C
blob044c8b78ee5054be60c313c07cdad0dcf2a1bf05
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     };
9     struct D : B
10     {
11         void f() {}
12     };
14     int main()
15     {
16         D d;
17     }