mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Make KeyPath test pointer-size agnostic part 2
This commit is contained in:
@@ -1100,7 +1100,7 @@ if #available(SwiftStdlib 5.9, *) {
|
|||||||
let catNameKp = _createOffsetBasedKeyPath(
|
let catNameKp = _createOffsetBasedKeyPath(
|
||||||
root: Cat.self,
|
root: Cat.self,
|
||||||
value: String.self,
|
value: String.self,
|
||||||
offset: 16
|
offset: 2 * MemoryLayout<UnsafeRawPointer>.size
|
||||||
) as? KeyPath<Cat, String>
|
) as? KeyPath<Cat, String>
|
||||||
|
|
||||||
expectNotNil(catNameKp)
|
expectNotNil(catNameKp)
|
||||||
|
|||||||
Reference in New Issue
Block a user