aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-use.C
blob: 73677c0e767b99d3b71f1888eedb1d1c1312876a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target c++11 } }

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

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