summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-use.C
blob: b1d6c300cfdbe4b191cc743756fab7e95655a7ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options -std=c++0x }

int main(int argc, char** argv)
{
  int i;
  int &ir = i;
  const int ci = 0;
  const int &cir = ci;

  [] { sizeof (argc); sizeof (i); sizeof (ir); sizeof (ci); sizeof (cir); };
  [] { int ia[ci]; };
}