summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-vla2.C
blob: aee9694852d2d4f291ed11e525c38c76e94c856a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/84560
// { dg-do compile { target c++11 } }
// { dg-options "" }

void f() {
  int n = 1;
  int m = 1;
  int d[n][m];
  [&]() {
    return d[1];		// { dg-prune-output "sorry" }
  }();
}