Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
>();
}