Files
swift-mirror/test/IRGen/enum_function_payload.swift
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

25 lines
387 B
Swift

// RUN: %target-swift-frontend -emit-ir %s
enum Singleton {
case F((Singleton) -> ())
}
enum Single {
case F((Single) -> ())
case X
case Y
}
enum Multi {
case F((Multi) -> ())
case G((Multi) -> ())
}
enum Autoclosure<T> {
case first(@autoclosure () -> Bool, T)
case second(Int, @autoclosure () -> T)
}
_ = Autoclosure.first(false, 3)
_ = Autoclosure.second(3, "hi")