URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [operator4.C] - Rev 707
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/38174
struct VolatileIntPtr {
operator int volatile *();
};
struct ConstIntPtr {
operator int const *();
};
void test_with_ptrs(VolatileIntPtr vip, ConstIntPtr cip) {
bool b1 = (vip == cip);
long p1 = vip - cip;
}
Go to most recent revision | Compare with Previous | Blame | View Log