Skip to content

Commit 01402b0

Browse files
authored
Merge pull request #71088 from eeckstein/fix-tests
tests: adapt two tests for read-only-static objects
2 parents 376e216 + af9ef3c commit 01402b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/SILOptimizer/character_literals.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -parse-as-library -O -emit-ir %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -parse-as-library -disable-readonly-static-objects -O -emit-ir %s | %FileCheck %s
22
// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
33
// REQUIRES: swift_in_compiler
44
// REQUIRES: PTRSIZE=64

test/SILOptimizer/static_arrays.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public let globalVariable = [ 100, 101, 102 ]
105105

106106
// CHECK-LLVM-LABEL: define {{.*}} @"$s4test11arrayLookupyS2iF"
107107
// CHECK-LLVM-NOT: call
108-
// CHECK-LLVM: [[E:%[0-9]+]] = getelementptr {{.*}} @"$s4test11arrayLookupyS2iFTv_"
108+
// CHECK-LLVM: [[E:%[0-9]+]] = getelementptr {{.*}} @"$s4test11arrayLookupyS2iFTv_{{r*}}"
109109
// CHECK-LLVM-NEXT: [[L:%[0-9]+]] = load {{.*}} [[E]]
110110
// CHECK-LLVM-NEXT: ret {{.*}} [[L]]
111111
// CHECK-LLVM: }

0 commit comments

Comments
 (0)