Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/conv-tmpl1.C

raw
1 // Test for Core 2189.
2 // { dg-do compile { target c++11 } }
3
4 template <class T>
5 using Fn = void (*)(T);
6
7 struct A
8 {
9 template <class T>
10 operator Fn<T>();
11 };
12
13 int main()
14 {
15 A()(42);
16 }