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
/
pr63813.C
blob
6ca5b2d18c9abeee1610176219196cc66e4749e5
1
// PR sanitizer/63813
2
// { dg-do compile }
3
// { dg-options "-fsanitize=undefined -O1" }
4
5
struct A {};
6
struct B { long foo () const; A &bar () const; };
7
8
A &
9
B::bar () const
10
{
11
return *reinterpret_cast <A *> (foo ());
12
}