android_mt6572_jiabo/ndk/tests/build/lambda-defarg3/jni/lambda-defarg3.C
2025-09-05 16:56:03 +08:00

18 lines
329 B
C

// PR c++/55223
// { dg-options "-std=c++11 -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;}) { }
};
int main()
{
C<int>::test();
}