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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [ptrmem8.C] - Blame information for rev 704

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

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2007 Free Software Foundation
2
// Contributed by Ollie Wild 
3
// { dg-do run }
4
 
5
// Test for proper conversion of null pointers to data members.
6
 
7
struct B1 {
8
  int x;
9
};
10
 
11
struct B2 {
12
  int x;
13
};
14
 
15
struct D : B1, B2 {
16
  int x;
17
};
18
 
19
int main ()
20
{
21
  int D::*pd = 0;
22
  int B2::*pb2 = 0;
23
 
24
  return pd != pb2;
25
}

powered by: WebSVN 2.1.0

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