Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
vptr-10.C
blob: e05c33b90bab8b404af53c778ef09e8b2cd13a85 [
file
] [
log
] [
blame
]
// { dg-do run }
// { dg-options "-fsanitize=vptr -fno-sanitize-recover=vptr" }
struct
A
{
virtual
~
A
()
{}
};
struct
B
:
virtual
A
{};
struct
C
:
virtual
A
{};
struct
D
:
B
,
virtual
C
{};
int
main
()
{
D d
;
}