Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle5.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-additional-options -fkeep-inline-functions }
3 // { dg-final { scan-assembler "_ZZN1AIiEC4IiEET_S2_Ed_NKUlvE_clEv" } }
4
5 template <class T> struct A
6 {
7 template <class U>
8 A(U, U = []{ return 42; }());
9 };
10
11 struct B: A<int>
12 {
13 using A::A;
14 };
15
16 B b(24);