Files
swift-mirror/test/ClangImporter/sdk-protocol-class.swift
Mishal Shah 23c3b15f5f Support Xcode 13 beta
* Updating availability versions
* Remove all remaining overlays in stdlib/public/Darwin/*:
   - ObjectiveC
   - Dispatch
   - CoreFoundation
   - CoreGraphics
   - Foundation
2021-06-07 12:04:31 -07:00

14 lines
428 B
Swift

// RUN: rm -rf %t
// RUN: %target-swift-frontend -typecheck %s
// RUN: %target-swift-frontend -typecheck %S/Inputs/sdk-protocol-class/os1.swift
// RUN: %target-swift-frontend -typecheck %S/Inputs/sdk-protocol-class/os2.swift
// RUN: %target-swift-frontend -typecheck %S/Inputs/sdk-protocol-class/os3.swift
// REQUIRES: objc_interop
// REQUIRES: rdar61260194
import ObjectiveC
let p: Protocol? = objc_getProtocol("NSObject")