URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [ptrmem4.C] - Rev 699
Compare with Previous | Blame | View Log
// { dg-do run }
// Test to make sure g++ can handle target types that aren't identical
// with pointers to members.
struct A { int i; };
struct B : public A { };
int main ()
{
int A::*p = &A::i;
const int B::*q = &A::i;
return p != q;
}