mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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.
9 lines
251 B
Swift
9 lines
251 B
Swift
class DummyClass {}
|
|
|
|
// Used by the weak.mm runtime tests. All that matters is that the returned
|
|
// object is an instance of a pure Swift class.
|
|
@_silgen_name("make_swift_object")
|
|
public func make_swift_object() -> AnyObject {
|
|
return DummyClass()
|
|
}
|