File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -84,17 +84,17 @@ public func testMutableArrayToOptional() {
84
84
85
85
// CHECK-LABEL: sil @$s18pointer_conversion21arrayLiteralPromotionyyF
86
86
public func arrayLiteralPromotion() {
87
- takesConstRawPointer([41,42,43,44])
87
+ takesConstRawPointer([- 41,- 42,- 43,- 44])
88
88
89
89
// Stack allocate the array.
90
90
// TODO: When stdlib checks are enabled, this becomes heap allocated... :-(
91
91
// CHECK: alloc_ref {{.*}}[tail_elems $Int * {{.*}} : $Builtin.Word] $_ContiguousArrayStorage<Int>
92
92
93
93
// Store the elements.
94
- // CHECK: [[ELT:%.+]] = integer_literal $Builtin.Int{{.*}}, 41
95
- // CHECK: [[ELT:%.+]] = integer_literal $Builtin.Int{{.*}}, 42
96
- // CHECK: [[ELT:%.+]] = integer_literal $Builtin.Int{{.*}}, 43
97
- // CHECK: [[ELT:%.+]] = integer_literal $Builtin.Int{{.*}}, 44
94
+ // CHECK: [[ELT:%.+]] = integer_literal $Builtin.Int{{.*}}, - 41
95
+ // CHECK: [[ELT:%.+]] = integer_literal $Builtin.Int{{.*}}, - 42
96
+ // CHECK: [[ELT:%.+]] = integer_literal $Builtin.Int{{.*}}, - 43
97
+ // CHECK: [[ELT:%.+]] = integer_literal $Builtin.Int{{.*}}, - 44
98
98
99
99
// Call the function.
100
100
// CHECK: [[PTR:%.+]] = mark_dependence
You can’t perform that action at this time.
0 commit comments