Files
swift-mirror/test/PrintAsObjC/dispatch.swift
2017-06-04 11:08:39 -07:00

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