blob: 298547e0dc6832f2c0a659ed3202dd08eb756e53 [file] [log] [blame]
// PR sanitizer/65000
// { dg-do compile }
// { dg-options "-O1 -fsanitize=undefined -fno-sanitize-recover" }
struct B { virtual ~B () {} void foo (); };
struct C { virtual ~C (); };
struct A : public virtual C {};
struct D : A { ~D () { d.foo (); } B d; };
void
bar ()
{
D a;
}