Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p6311.C
blob: 309a083ad50d9e529bba6a06b28bf39ff64e679b [
file
] [
log
] [
blame
]
// { 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
;
}