Files
swift-mirror/test/SILOptimizer/Inputs/switch_enum_objc.h
Jordan Rose 42ab9968f1 [SILGen] Fix one more place that needs to check for enum exhaustivity
And add a bunch of tests, including one that runs into the verifier
check added previously without this change.
2018-07-31 20:17:46 -07:00

15 lines
428 B
C

// Even though these are marked "closed", Swift shouldn't trust it.
enum Alpha {
AlphaA __attribute__((swift_name("a"))),
AlphaB __attribute__((swift_name("b"))),
AlphaC __attribute__((swift_name("c"))),
AlphaD __attribute__((swift_name("d"))),
AlphaE __attribute__((swift_name("e")))
} __attribute__((enum_extensibility(closed)));
enum Coin {
CoinHeads,
CoinTails
} __attribute__((enum_extensibility(closed)));