aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/nested-array-init-loop-in-lambda-capture.cpp
blob: 82d27380b637d03d6dc927b2298ad664f1c184b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -std=c++17 -verify %s
// RUN: %clang_cc1 -std=c++17 -verify=ref %s

// ref-no-diagnostics
// expected-no-diagnostics

void used_to_crash() {
  int s[2][2];

  int arr[4];

  arr[0] = [s] { return s[0][0]; }();
}