mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
And add a bunch of tests, including one that runs into the verifier check added previously without this change.
15 lines
428 B
C
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)));
|