Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv5.C

raw
1 // PR c++/45080
2 // { dg-do compile { target c++11 } }
3
4 typedef void(*pfn)();
5
6 template<typename=int>
7 void f()
8 {
9 pfn fn = []{};
10 }
11
12 void test()
13 {
14 f();
15 }