Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/55223 // { dg-do compile { target c++11 } } // { dg-options "-fabi-version=0" } // { dg-final { scan-assembler "_ZN8functionC1IZN1CIiE4testES_Ed_UliE_EET_" } } struct function { template <class U> function(U u) { } }; template<typename T> struct C { static T test(function f = [](int i){return i;}) { return T(); } }; int main() { C<int>::test(); }