blob: fc19c9969d7ce33015efd4fd705813926d5020ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Test for conversion from stateless lambda to function pointer.
// { dg-options -std=c++0x }
// { dg-do run }
typedef int (*pfn)(int);
int main()
{
pfn p = [](int i) { return i-42; };
return p (42);
}
|