Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-defarg3.C
blob27aac578c07adbf16a021b847d34f05bd5fdda83
1 // PR c++/55223
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fabi-version=0" }
4 // { dg-final { scan-assembler "_ZN8functionC1IZN1CIiE4testES_Ed_UliE_EET_" } }
6 struct function
8   template <class U> function(U u) { }
9 };
11 template<typename T> struct C
13   static T test(function f = [](int i){return i;}) { return T(); }
16 int main()
18   C<int>::test();