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
6struct V { };
7struct A: virtual public V { };
8
9A* ap;
10A*& apr (ap);
11
12int main ()
13{
14  V* vp = apr;
15}
16