mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
25 lines
953 B
Swift
25 lines
953 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -enable-objc-interop -disable-objc-attr-requires-foundation-module | %FileCheck %s
|
|
|
|
// REQUIRES: CPU=x86_64
|
|
|
|
// Class properties get reflected to ObjC as class methods. ObjC does not have
|
|
// class properties, so no ObjC property is reflected.
|
|
|
|
// CHECK-NOT: @_PROPERTIES__TtC19objc_class_property7Smashed
|
|
// CHECK: @_CLASS_METHODS__TtC19objc_class_property7Smashed = internal constant { i32, i32, [1 x { ptr, ptr, ptr }] } {
|
|
// CHECK: ptr @"\01L_selector_data(sharedSmashed)"
|
|
// CHECK-NOT: @_PROPERTIES__TtC19objc_class_property7Smashed
|
|
// CHECK: @_INSTANCE_METHODS__TtC19objc_class_property7Smashed = internal constant { i32, i32, [1 x { ptr, ptr, ptr }] } {
|
|
// CHECK: ptr @"\01L_selector_data(init)"
|
|
// CHECK-NOT: @_PROPERTIES__TtC19objc_class_property7Smashed
|
|
|
|
@objc class Smashed {
|
|
@objc class var sharedSmashed: Smashed {
|
|
return Smashed()
|
|
}
|
|
|
|
@objc init() {}
|
|
}
|
|
|
|
let s = Smashed.sharedSmashed
|