repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr65000.C
blob
298547e0dc6832f2c0a659ed3202dd08eb756e53
1
// PR sanitizer/65000
2
// { dg-do compile }
3
// { dg-options "-O1 -fsanitize=undefined -fno-sanitize-recover" }
4
5
struct B { virtual ~B () {} void foo (); };
6
struct C { virtual ~C (); };
7
struct A : public virtual C {};
8
struct D : A { ~D () { d.foo (); } B d; };
9
10
void
11
bar ()
12
{
13
D a;
14
}