Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/decltype36.C

raw
1 // PR c++/51265
2 // { dg-do compile { target c++11 } }
3
4 struct Funny
5 {
6 int print(int);
7 };
8
9 template<typename X>
10 void c();
11
12 template<typename X, X ff>
13 void xx()
14 {
15 c<decltype(ff)>();
16 }
17
18 int main()
19 {
20 xx<int(Funny::*)(int), &Funny::print>();
21 }