repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git]
/
test
/
TableGen
/
ListSlices.td
blob
cbb2326a95c003952d0a0960c34778ea6298ef8d
1
// RUN: llvm-tblgen %s
2
// XFAIL: vg_leak
3
4
def A {
5
list<int> B = [10, 20, 30, 4, 1, 1231, 20];
6
}
7
8
def B {
9
list<int> X = [10, 20, 30, 4, 1, 1231, 20] [2-4,2,2,0-6];
10
11
list<int> Y = X[4,5];
12
int Z = X[4];
13
14
list<int> C = A.B[1-4];
15
16
list<list<int>> AA = [X, Y];
17
18
int BB = AA[0][1];
19
}