Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
ptrmem4.C
blob: 0803c9e632b1a2dd24cf07a3066d5bbb9326efdc [
file
] [
log
] [
blame
]
// PR c++/15471
// { dg-do run }
struct
myclass
{
unsigned
a
;
union
{
unsigned
x
;
};
};
int
main
()
{
myclass foo
;
unsigned
myclass
::*
member
=
&
myclass
::
x
;
if
(&(
foo
.*
member
)
!=
&
foo
.
x
)
return
1
;
}