Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
vptr-13.C
blob: 345581fd9d0efc25ef5249c75d1d88c1554c07c0 [
file
] [
log
] [
blame
]
// PR c++/87095
// { dg-do run }
// { dg-options "-fsanitize=vptr -fno-sanitize-recover=vptr" }
struct
A
{
virtual
~
A
()
{}
};
struct
B
:
virtual
A
{};
struct
C
:
B
{};
int
main
()
{
C c
;
return
0
;
}