summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-init.C
blob: 03c94e95981fb9930e10d09ea06c5928697fa2bf (plain)
1
2
3
4
5
6
7
8
// Test for the explicit initializer extension
// { dg-options "-std=c++0x" }

int main()
{
  int j = [i = 2]{sizeof(i); return i;}();
  return (j != 2);
}