Skip to content

Commit ff51b7b

Browse files
authored
Merge pull request #21851 from brentdax/a-funny-thing-happened-on-the-way-to-filecheck
2 parents 106c470 + 620f874 commit ff51b7b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/SILOptimizer/pointer_conversion.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@ public func testMutableArrayToOptional() {
8484
8585
// CHECK-LABEL: sil @$s18pointer_conversion21arrayLiteralPromotionyyF
8686
public func arrayLiteralPromotion() {
87-
takesConstRawPointer([41,42,43,44])
87+
takesConstRawPointer([-41,-42,-43,-44])
8888
8989
// Stack allocate the array.
9090
// TODO: When stdlib checks are enabled, this becomes heap allocated... :-(
9191
// CHECK: alloc_ref {{.*}}[tail_elems $Int * {{.*}} : $Builtin.Word] $_ContiguousArrayStorage<Int>
9292
9393
// 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
9898
9999
// Call the function.
100100
// CHECK: [[PTR:%.+]] = mark_dependence

0 commit comments

Comments
 (0)