Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
vptr-16.C
blob: a3db66e91408131221e70c3a8b9a3402a4141103 [
file
] [
log
] [
blame
]
// PR c++/95311
// { dg-additional-options -fsanitize=undefined }
class
a
{
virtual
long
b
()
const
;
};
class
c
:
a
{
public
:
long
b
()
const
;
};
class
d
:
c
{
long
e
();
};
long
d
::
e
()
{
b
();
return
0
;
}