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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr64632.C
blob
0d2a7aa9aef9b206403bb6413916d58b5ada01ee
1
// PR sanitizer/64632
2
// { dg-do run }
3
// { dg-options "-fsanitize=vptr -fno-sanitize-recover=vptr" }
4
5
struct S
6
{
7
S () : a(0) {}
8
int a;
9
int f () { return a; }
10
virtual int v () { return 0; }
11
};
12
13
struct X : virtual S
14
{
15
int v () { return 2; }
16
};
17
18
int
19
main ()
20
{
21
X x;
22
return x.f ();
23
}