mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
... or something. This manifested as a crash when emitting an @objc thunk for an NS_STRING_ENUM type. Fixes <rdar://problem/35140812>.
13 lines
273 B
Swift
13 lines
273 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-ir %s -import-objc-header %S/Inputs/clang_string_enum.h > /dev/null
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
class PandaCub : NSObject {}
|
|
|
|
extension PandaCub {
|
|
@objc func cuddle(_: PandaStyle) { }
|
|
}
|