aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-debug.C
blob: b8b15d01aee778de7d85fced48d1557fe4bd51bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/43502
// { dg-do compile { target c++11 } }
// { dg-options "-fcompare-debug" }

void g (int n)
{
  int bef ([]{return 0;}());
}
struct S {
  void f (int = []{return 0;}(), int = [] { return 0;}());
};
int main ()
{
  S ().f ();
  return 0;
}