summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle3.C
blob: 2120d8c72fe9d0543e70f1a4d836096444a5eb08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/51818
// { dg-do compile { target c++11 } }
// { dg-final { scan-assembler "_ZN1AC1IN3foo3barMUlvE_EEET_" } }
// { dg-additional-options -fno-implicit-constexpr }

struct A
{
  template <class T> A(T) { }
};

struct foo
{
  A bar = []{};
};

foo f;