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
/
pr101210.C
blob
955b8203f446b9ee73239e68cff230abdc2cd3da
1
// PR c++/101210
2
// { dg-do run }
3
// { dg-options "-fsanitize=null,alignment -fno-sanitize-recover=null,alignment" }
4
5
int v[2];
6
int
7
main ()
8
{
9
int x;
10
int &y = x;
11
v[0] = reinterpret_cast<__INTPTR_TYPE__>(&y) == 0;
12
v[1] = reinterpret_cast<__INTPTR_TYPE__>(&y) == 1;
13
}