Merge from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-decltype1.C
blob0ab0cddb54a201a04d4c6e5d8ffff7ad16ddf2aa
1 // PR c++/59791
2 // We force the gimple dump to trigger use of lang_decl_name.
3 // { dg-options "-std=c++11 -fdump-tree-gimple" }
4 // { dg-final { cleanup-tree-dump "gimple" } }
6 template < class T > void
7 f (T t)
9   int i = t;
10   [](int)->decltype (i + t)
11   {
12     return 0;
13   }
14   (0);
17 void
18 foo ()
20   f (0);