Files
swift-mirror/test/SIL/Serialization/Inputs/specializer_input.swift
Mark Lacey 08a7c2e540 Update some tests to remove -sil-inline-threshold in favor of @inline(never).
Replace the use of -sil-inline-threshold with @inline(never) on specific
functions. This is required in some cases in order to remove the generic
specialization pass and allow the inliner to do the specialization
instead (specifically the cases where the parameter is 0, which causes
us to exit the inliner immediately).

Also add public in some places to ensure that we do not toss out
functions before we even make it to the inliner (once the standalone
generic specialization pass is removed).

Swift SVN r31126
2015-08-10 21:33:13 +00:00

11 lines
155 B
Swift

public typealias Int = Builtin.Int32
public struct Container<V> {
@inline(never)
public func doSomething() {}
@inline(never)
public init() {}
}