Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-pmf1.C

raw
1 // { dg-do compile { target c++11 } }
2
3 struct A
4 {
5 void f();
6 };
7
8 using ftype = decltype(&A::f);
9
10 template <class T>
11 bool f()
12 {
13 ftype p = ftype{};
14 return p;
15 }
16
17 int main()
18 {
19 f<int>();
20 }