summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle2.C
blob: 4b7d15ad953c6932c5f5a8cceb64eedb6488dcf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR c++/49276
// { dg-do compile }
// { dg-options "-std=c++0x" }

template <int N>
struct F
{
  template <typename U> F (U);
};

struct S
{
  void foo (F <0> x = [] {}) {}
};

int
main ()
{
  S s;
  s.foo ();
}