Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ptrmem1.C
blob: 8ebc61c517c894687978eb296be381fd4ca5291a [
file
] [
log
] [
blame
]
// { dg-do run }
class
foo
{
public
:
template
<
class
T
>
T bar
()
{
return
7
;
}
};
int
main
()
{
foo f
;
int
(
foo
::*
s
)()
=
&
foo
::
bar
<int>
;
if
((
f
.*
s
)()
==
7
)
return
0
;
else
return
1
;
}