llvm.org GIT mirror llvm / 3aa965f
New testcase for list slicing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15248 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 // RUN: tblgen %s
1
2 def A {
3 list B = [10, 20, 30, 4, 1, 1231, 20];
4 }
5
6 def B {
7 list X = [10, 20, 30, 4, 1, 1231, 20] [2-4,2,2,0-6];
8
9 list Y = X[4,5];
10 int Z = X[4];
11
12 list C = A.B[1-4];
13
14 list> AA = [X, Y];
15
16 int BB = AA[0][1];
17 }