Sign in
gnu
/
gcc
/
8353b540e6bf07bc4de944da9c3772c619f86a9c
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
ptrmem4.C
blob: dc378b23e6f16d83b228d0cc7b50f5adfc8b45d8 [
file
] [
log
] [
blame
]
// 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
;
}