view gcc/testsuite/g++.dg/ubsan/vptr-15.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

// PR c++/94325
// { dg-do run { target c++11 } }
// { dg-options "-fsanitize=vptr -fno-sanitize-recover=vptr" }

struct A { virtual ~A () = default; };
struct B : public virtual A {};
struct C : public B {};
struct D : public C {};

int
main ()
{
  D a;
}