repo.or.cz
/
official-gcc
/
constexpr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make lambda conversion op and op() non-static.
[official-gcc/constexpr.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-conv.C
blob
acd7da0b6d8c265748063da6badf88b364cf12e1
1
// Test for conversion from stateless lambda to function pointer.
2
3
// { dg-options -std=c++0x }
4
// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENKUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin } } } } }
5
6
inline void f()
7
{
8
void (*pfn)() = []{};
9
}
10
11
int main()
12
{
13
f();
14
}