URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// PR c++/5453: Test that we don't assume that the pointer target of a
|
// PR c++/5453: Test that we don't assume that the pointer target of a
|
// reference is non-null just because we know the reference isn't.
|
// reference is non-null just because we know the reference isn't.
|
|
|
// { dg-do run }
|
// { dg-do run }
|
|
|
struct V { };
|
struct V { };
|
struct A: virtual public V { };
|
struct A: virtual public V { };
|
|
|
A* ap;
|
A* ap;
|
A*& apr (ap);
|
A*& apr (ap);
|
|
|
int main ()
|
int main ()
|
{
|
{
|
V* vp = apr;
|
V* vp = apr;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.