Files
swift-mirror/stdlib/unittest/TestHelpers.swift
Joe Groff f02ba53d97 Reenable the weak reference runtime tests in weak.mm.
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
2015-01-29 17:49:08 +00:00

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