Lower zeroing array assignment to memset for allocatable arrays.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-template13.C
blob8aaf5b2800f0c3c4198f9e3868462627b6214595
1 // PR c++/61566
2 // { dg-do compile { target c++11 } }
4 struct function
6   template < typename _Functor>
7   function (_Functor) {}
8 };
10 template <class U>
11 struct C
13   template <typename T>
14   void foo (T, function = [] {});
17 void bar ()
19   C<int> c;
20   c.foo (1);
23 // { dg-final { scan-assembler "_ZN8functionC1IZN1CIiE3fooIiEEvT_S_Ed_UlvE_EES4_" } }
24 // { dg-final { scan-assembler-not "_ZZN1CIiE3fooIiEEvT_8functionEd_NKUlvE_clEv" } }