Files
swift-mirror/test/SILOptimizer/Inputs/cross-module/default-submodule.swift
Erik Eckstein a1da35c6cb cross-module-optimization: be more conservative when emitting a TBD file, part 2
This is a follow-up of 1dfb3b1a2a.
We need to be more conservative about types as for functions, because types can also "produce" symbols, like direct field offsets, etc.

rdar://96953318
2022-07-26 14:28:09 +02:00

19 lines
266 B
Swift

public func incrementByOne(_ x: Int) -> Int {
return x + 1
}
@_semantics("optimize.no.crossmodule")
public func incrementByOneNoCMO(_ x: Int) -> Int {
return x + 1
}
public final class SubmoduleKlass {
public var i: Int
public init() {
i = 27
}
}