URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p6311.C] - Rev 841
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// prms-id: 6311
struct Foo {
int member;
} a = { 42 }, *ptra = &a;
int Foo::*pmd = &Foo::member;
int main() {
if (pmd == 0)
return 1;
if (a.*pmd != 42)
return 2;
if (ptra->*pmd != 42)
return 3;
}
Go to most recent revision | Compare with Previous | Blame | View Log