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
22// REQUIRES: objc_interop
33// REQUIRES: OS=macosx
44
55import Foundation
66
7- func test( s: NSBackgroundActivityScheduler ) async {
7+ func test( s: BackgroundActivityScheduler ) async {
88 _ = await s. schedule ( )
99}
You can’t perform that action at this time.
0 commit comments