Skip to content

Commit 74173a8

Browse files
Merge pull request #4925 from swiftwasm/release/5.7
[pull] swiftwasm-release/5.7 from release/5.7
2 parents 8b99c13 + 9bcc6fc commit 74173a8

8 files changed

+16
-24
lines changed

test/Interpreter/SDK/FoundationDiagnostics.swift

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/Interpreter/SDK/Foundation_NSRect.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
// iOS doesn't have NSRect. iOS and OS X CGRect is tested elsewhere.
55
// REQUIRES: OS=macosx
66

7-
import Foundation
7+
import CoreImage
8+
9+
_ = JSONDecoder()
810

911
func printRect(_ r: NSRect) {
1012
// FIXME: Constraint checker takes too long to typecheck this as an

test/Interpreter/SDK/Quartz_without_Foundation.swift

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/Interpreter/SDK/objc_implicit_inner_pointer.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
// REQUIRES: executable_test
88
// REQUIRES: objc_interop
99

10+
import Foundation
11+
12+
_ = JSONDecoder()
13+
1014
do {
1115
// The lifetime of Foo() currently gets extended using autorelease.
1216
autoreleasepool {

test/Interpreter/SDK/objc_inner_pointer.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// REQUIRES: objc_interop
55

66
import Foundation
7+
8+
_ = JSONDecoder()
79

810
class Canary: NSObject {
911
deinit {

test/Interpreter/SDK/objc_unowned.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
import Foundation
77

8+
_ = JSONDecoder()
9+
810
let x = NSObject()
911
unowned let y = x
1012

test/stdlib/NSStringAPI.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,10 @@ NSStringAPIs.test("init(contentsOf:usedEncoding:error:)") {
210210
}
211211

212212
NSStringAPIs.test("init(cString_:encoding:)") {
213-
expectEqual("foo, a basmati bar!",
214-
String(cString:
215-
"foo, a basmati bar!", encoding: String.defaultCStringEncoding))
213+
"foo, a basmati bar!".withCString {
214+
expectEqual("foo, a basmati bar!",
215+
String(cString: $0, encoding: String.defaultCStringEncoding))
216+
}
216217
}
217218

218219
NSStringAPIs.test("init(utf8String:)") {

validation-test/compiler_crashers_2_fixed/rdar81590807.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func run(on object: PFXObject) async throws {
4848

4949
@main struct Main {
5050
static func main() async throws {
51+
_ = JSONDecoder()
5152
let object = PFXObject()
5253
try await run(on: object)
5354
}

0 commit comments

Comments
 (0)