repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
vptr-10.C
blob
e05c33b90bab8b404af53c778ef09e8b2cd13a85
1
// { dg-do run }
2
// { dg-options "-fsanitize=vptr -fno-sanitize-recover=vptr" }
3
4
struct A
5
{
6
virtual ~A() {}
7
};
8
struct B : virtual A {};
9
struct C : virtual A {};
10
struct D : B, virtual C {};
11
12
int main()
13
{
14
D d;
15
}