Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype36.C
blob: c426f69a6d80892d75577aebfc02b7f33b5cdcd2 [
file
] [
log
] [
blame
]
// PR c++/51265
// { dg-do compile { target c++11 } }
struct
Funny
{
int
print
(
int
);
};
template
<
typename
X
>
void
c
();
template
<
typename
X
,
X ff
>
void
xx
()
{
c
<
decltype
(
ff
)>();
}
int
main
()
{
xx
<
int
(
Funny
::*)(
int
),
&
Funny
::
print
>();
}