Merged revision 156805 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-conv.C
blobfd7e40193505df99ef62f3ef3a74ad9b24da7710
1 // Test for conversion from stateless lambda to function pointer, which is
2 // not yet part of the draft but hopefully will be after the March 2010
3 // meeting.
5 // { dg-options -std=c++0x }
6 // { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin } } } } }
8 inline void f()
10   void (*pfn)() = []{};
13 int main()
15   f();