summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/decltype36.C
blob: f3dfed992cfd2d17ec568a80ec282bb666b3b45e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR c++/51265
// { dg-options -std=c++0x }

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>();
}