Lines Matching refs:list

4 // This file has tests for the list slice suffix.
9 // CHECK: list<int> ShowVar1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
11 // CHECK: list<int> ShowVar3 = [2, 3, 4, 5]
13 // CHECK: list<int> ShowVar5 = [2, 3, 4, 5]
23 list<int> ShowVar1 = Var1;
25 list<int> ShowVar3 = Var3;
27 list<int> ShowVar5 = Var5;
32 // CHECK: list<int> TwoFive = [2, 3, 4, 5]
36 list<int> TwoFive = Var1[2...5];
43 // CHECK: list<int> TwoFive = [12, 13, 14, 15]
45 class Class1<list<int> ids> {
47 list<int> TwoFive = ids[2...5];
56 // CHECK: list<int> TwoFive = [22, 23, 24, 25]
60 list<int> TwoFive = Class1<[20, 21, 22, 23, 24, 25, 26]>.TwoFive;
67 // CHECK: list<int> TwoFive = [32, 33, 34, 35]
70 // CHECK: list<int> TwoFive = [32, 33, 34, 35]
72 multiclass MC1<list<int> ids> {
75 list<int> TwoFive = ids[2...5];
82 // Test taking a complex subset of the list items from another record.
85 // CHECK: list<int> SomeValues = [40, 43, 44, 45, 40, 47, 49, 48, 47, 46, 40]
88 list<int> Values = [40, 41, 42, 43, 44, 45, 46, 47, 48, 49];
92 list<int> SomeValues = Rec06.Values[0, 3...5, 0, 7, 9...6, 0];
98 // CHECK: list<list<string>> Array = {{.*}}"foo", "bar", "snork"], ["zoo", "quux", "flarp"]]
100 // CHECK: list<string> ZooQuux = ["zoo", "quux"]
103 list<list<string>> Array = [["foo", "bar", "snork"],
106 list<string> ZooQuux = Array[1][0...1];
109 // Test uninitialized list elements.
113 // CHECK: list<int> TwoFive = [2, 3, ?, 5];
118 // CHECK-NEXT: list<int> TwoFive = [2, 3, ?, 5];
124 list<int> TwoFive = Class1<[?, ?, 2, 3, ?, 5, ?]>.TwoFive;