OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [null1.C] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.