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
/
pr68508.C
blob
ffe8f0071dbc5a41c7e75863b735722696fc9d8a
1
// PR c++/68508
2
// { dg-do compile }
3
// { dg-options "-std=c++14 -fsanitize=vptr" }
4
5
struct A
6
{
7
virtual int foo () { return 0; }
8
};
9
10
const A &
11
bar ()
12
{
13
static A x = A ();
14
return (x);
15
}