repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
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
blob
82d27380b637d03d6dc927b2298ad664f1c184b2
1
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -std=c++17 -verify %s
2
// RUN: %clang_cc1 -std=c++17 -verify=ref %s
3
4
// ref-no-diagnostics
5
// expected-no-diagnostics
6
7
void
used_to_crash
() {
8
int
s
[
2
][
2
];
9
10
int
arr
[
4
];
11
12
arr
[
0
] = [
s
] {
return
s
[
0
][
0
]; }();
13
}