File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 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
2
2
// REQUIRES: objc_interop
3
3
// REQUIRES: OS=macosx
4
4
5
5
import Foundation
6
6
7
- func test( s: NSBackgroundActivityScheduler ) async {
7
+ func test( s: BackgroundActivityScheduler ) async {
8
8
_ = await s. schedule ( )
9
9
}
You can’t perform that action at this time.
0 commit comments