URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [cast7.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// Test that we can add cv-quals in a static cast to a pointer-to-base type.
struct A { int i; };
struct B : public A {};
int main()
{
int B::* bp = &B::i;
const int A::* ap = static_cast<const int A::*>(bp);
return ap != bp;
}
Go to most recent revision | Compare with Previous | Blame | View Log