mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These show up specifically when someone forms a keypath to an ObjC property in a category. They're no-ops from the perspective of DFE but the code has to intentionally skip the case if it wants to avoid the subsequent llvm_unreachable. rdar://34913689
8 lines
211 B
Swift
8 lines
211 B
Swift
// RUN: %target-swift-frontend %s -O -emit-sil -import-objc-header %S/Inputs/keypaths_objc.h
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
public func test_nocrash_rdar34913689() {
|
|
_ = \ObjCFoo.objcExtraProp
|
|
}
|