Files
swift-mirror/test/Serialization/Inputs/def_always_inline.swift
Ben Cohen e9d4687e31 De-underscore @frozen, apply it to structs (#24185)
* De-underscore @frozen for enums

* Add @frozen for structs, deprecate @_fixed_layout for them

* Switch usage from _fixed_layout to frozen
2019-05-30 17:55:37 -07:00

16 lines
255 B
Swift

@inline(__always) @inlinable public func testAlwaysInline(x: Bool) -> Bool {
return x
}
@frozen
public struct AlwaysInlineInitStruct {
@usableFromInline
var x: Bool
@inline(__always) @inlinable
public init(x x2: Bool) {
self.x = x2
}
}