summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv5.C
blob: 53d8e995ef919ce57023057a2e1d8ecbb7e115a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/45080
// { dg-options -std=c++0x }

typedef void(*pfn)();

template<typename=int>
void f()
{
  pfn fn = []{};
}

void test()
{
  f();
}