summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg.C
blob: 069935823ea5d566af3e75c8c1f03447a5291766 (plain)
1
2
3
4
5
6
// { dg-options "-std=c++0x -pedantic-errors" }

int main()
{
  [](int a = 1) { return a; }(); // { dg-error "" }
}