Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
pmf6.C
blob: 7ff34d0498448b95ba6128cf3854ba0de01b4a3e [
file
] [
log
] [
blame
]
// { dg-do assemble }
// { dg-options "" }
class
S
{
public
:
void
(
S
::*
pmf
)();
void
foo
()
{
pmf
();
// { dg-error "pointer-to-member" }
}
static
void
foo1
(
S
*
sp
)
{
(
sp
->
pmf
)();
// { dg-error "pointer-to-member" }
}
};