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