2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / dtor3.C
blob2d9309877605c60c5061d2344f34c03b73775da9
1 // PR c++/42386
2 // { dg-do compile }
3 // { dg-options "-O2" }
4 # 1 "A.h" 1
5 #pragma interface
6 struct D { virtual bool d () const; };
7 struct E { virtual ~E (); virtual void *e () const = 0; };
8 struct A : public D, public E { ~A () {} };
9 # 5 "dtor3.C" 1
10 struct F : public A { void *f () const; void *e () const; };
11 void *F::e () const { return __null; }