Skip to content

Commit

Permalink
Merge pull request swiftlang#71088 from eeckstein/fix-tests
Browse files Browse the repository at this point in the history
tests: adapt two tests for read-only-static objects
  • Loading branch information
eeckstein authored Jan 23, 2024
2 parents 376e216 + af9ef3c commit 01402b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/SILOptimizer/character_literals.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -parse-as-library -O -emit-ir %s | %FileCheck %s
// RUN: %target-swift-frontend -parse-as-library -disable-readonly-static-objects -O -emit-ir %s | %FileCheck %s
// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
// REQUIRES: swift_in_compiler
// REQUIRES: PTRSIZE=64
Expand Down
2 changes: 1 addition & 1 deletion test/SILOptimizer/static_arrays.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public let globalVariable = [ 100, 101, 102 ]

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

0 comments on commit 01402b0

Please sign in to comment.