Files
swift-mirror/test/Serialization/Inputs/moveonly_deinit.swift
Kavon Farvardin da3f2e2666 add addtl coverage for when the moveonly type is not used
We want to ensure that the deserialization error added
for this test doesn't trigger when the moveonly type
is not used by the importing module.

part of rdar://106262652
2023-03-06 17:42:55 -08:00

28 lines
338 B
Swift

@_moveOnly
public struct MoveOnlyStruct {
private let desc: Int
public init(desc: Int) {
self.desc = desc
}
deinit { }
}
@_moveOnly
public enum MoveOnlyEnum {
case lhs(Int)
case rhs(Int)
deinit { }
}
public struct NormalStruct {
private let desc: Int
public init(desc: Int) {
self.desc = desc
}
}