mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This replaces the '[volatile]' flag. Now, class_method and super_method are only used for vtable dispatch. The witness_method instruction is still overloaded for use with both ObjC protocol requirements and Swift protocol requirements; the next step is to make it only mean the latter, also using objc_method for ObjC protocol calls.
14 lines
489 B
Swift
14 lines
489 B
Swift
// RUN: %target-swift-frontend -emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
class MyFunkyDictionary: NSDictionary {
|
|
// CHECK-LABEL: sil hidden @_T023super_objc_class_method17MyFunkyDictionaryC10initializeyyFZ
|
|
// CHECK: objc_super_method %0 : $@thick MyFunkyDictionary.Type, #NSObject.initialize!1.foreign : (NSObject.Type) -> () -> ()
|
|
override class func initialize() {
|
|
super.initialize()
|
|
}
|
|
}
|
|
|