Skip to content

Commit d8686f7

Browse files
authored
Merge pull request #38687 from nate-chandler/validation-test/compiler_crashers_2_fixed/rdar79383990.swift/20210728/1
2 parents 221755c + 4a8a647 commit d8686f7

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)