Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / AST / nested-array-init-loop-in-lambda-capture.cpp
blob82d27380b637d03d6dc927b2298ad664f1c184b2
1 // RUN: %clang_cc1 -fexperimental-new-constant-interpreter -std=c++17 -verify %s
2 // RUN: %clang_cc1 -std=c++17 -verify=ref %s
4 // ref-no-diagnostics
5 // expected-no-diagnostics
7 void used_to_crash() {
8 int s[2][2];
10 int arr[4];
12 arr[0] = [s] { return s[0][0]; }();