mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This reflects the fact that the attribute's only for compiler-internal use, and isn't really equivalent to C's asm attribute, since it doesn't change the calling convention to be C-compatible.
19 lines
248 B
Swift
19 lines
248 B
Swift
|
|
public protocol P {
|
|
func doSomething()
|
|
}
|
|
|
|
@_silgen_name("unknown") public
|
|
func unknown() -> ()
|
|
|
|
public class Y : P {
|
|
public func doAnotherThing() {
|
|
unknown()
|
|
}
|
|
|
|
public func doSomething() {
|
|
doAnotherThing()
|
|
}
|
|
public init() {}
|
|
}
|