Skip to content

Commit 4a8a647

Browse files
committed
[Test] Used test header rather than SDK.
Stopped validation-test/compiler_crashers_2_fixed/rdar79383990.swift from trying to call -[NSBackgroundActivityScheduler scheduleWithBlock:] async--that method is now annotated NS_SWIFT_DISABLE_ASYNC.
1 parent 3b15f30 commit 4a8a647

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@import Foundation;
2+
3+
typedef NS_ENUM(NSInteger, BackgroundActivityResult) {
4+
BackgroundActivityResultFinished = 1,
5+
BackgroundActivityResultDeferred = 2,
6+
};
7+
8+
typedef void (^BackgroundActivityCompletionHandler)(BackgroundActivityResult result);
9+
10+
@interface BackgroundActivityScheduler : NSObject
11+
- (void)scheduleWithBlock:(void (^)(BackgroundActivityCompletionHandler completionHandler))block;
12+
@end
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// RUN: %target-swift-frontend %s -emit-silgen -disable-availability-checking
1+
// RUN: %target-swift-frontend %s -emit-silgen -disable-availability-checking -import-objc-header %S/Inputs/rdar79383990.h
22
// REQUIRES: objc_interop
33
// REQUIRES: OS=macosx
44

55
import Foundation
66

7-
func test(s: NSBackgroundActivityScheduler) async {
7+
func test(s: BackgroundActivityScheduler) async {
88
_ = await s.schedule()
99
}

0 commit comments

Comments
 (0)