Files
swift-mirror/stdlib/private/StdlibUnittest/TestHelpers.swift
Joe Groff fbd2e4d872 Rename @asmname to @_silgen_name.
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.
2015-11-17 14:13:48 -08:00

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()
}