mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Instead of directly referencing a long-dead constructor from the standard library, put a purpose-built function in StdlibUnittest to feed a Swift object reference to the test C code. rdar://problem/18498737 Swift SVN r24816
9 lines
246 B
Swift
9 lines
246 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.
|
|
@asmname("make_swift_object")
|
|
public func make_swift_object() -> AnyObject {
|
|
return DummyClass()
|
|
}
|