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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [pmem3.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
// Test that comparison of pointers to members does not complain about
3
// contravariance violation.
4
 
5
struct A { int i; };
6
struct B : public A { int j; int f (); };
7
int main ()
8
{
9
  int A::*apm = &A::i;
10
  int B::*bpm = apm;
11
  return apm != bpm;
12
}

powered by: WebSVN 2.1.0

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