Files
swift-mirror/test/SIL/Serialization/Inputs/shared_function_serialization_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

13 lines
172 B
Swift

public struct X {
public init() { }
}
@inline(never)
public func the_thing<T>(t t : T) { }
@inline(never)
public func the_thing_it_does(x x : X) {
the_thing(t: x)
}