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
Fix PR48484
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
null1.C
blob
0908a01b91ceec9db4e51a907ac96976fcd2d188
1
// PR c++/5453: Test that we don't assume that the pointer target of a
2
// reference is non-null just because we know the reference isn't.
3
4
// { dg-do run }
5
6
struct V { };
7
struct A: virtual public V { };
8
9
A* ap;
10
A*& apr (ap);
11
12
int main ()
13
{
14
V* vp = apr;
15
}