mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
479 B
Swift
17 lines
479 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -typecheck %s -parse-as-library -emit-objc-header-path %t/swift.h
|
|
// RUN: %FileCheck %s < %t/swift.h
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
// CHECK: @import Dispatch;
|
|
|
|
// CHECK-LABEL: @interface Test : NSObject{{$}}
|
|
public class Test : NSObject {
|
|
// CHECK-NEXT: - (void)thank:(dispatch_queue_t _Nonnull)queue;
|
|
@objc public func thank(_ queue: DispatchQueue) {}
|
|
// CHECK-NEXT: init
|
|
} // CHECK-NEXT: @end
|