// RUN: %clang_cc1 -verify -Wswitch -triple x86_64-apple-macosx10.12 %s
enumSwitchOne{
Unavail __attribute__((availability(macos, unavailable))),};voidtestSwitchOne(enum SwitchOne so){switch(so){}// no warning
}enumSwitchTwo{
Ed __attribute__((availability(macos, deprecated=10.12))),
Vim __attribute__((availability(macos, deprecated=10.13))),
Emacs,};voidtestSwitchTwo(enum SwitchTwo st){switch(st){}// expected-warning{{enumeration values 'Vim' and 'Emacs' not handled in switch}}
}enumSwitchThree{
New __attribute__((availability(macos, introduced=1000))),};voidtestSwitchThree(enum SwitchThree st){switch(st){}// expected-warning{{enumeration value 'New' not handled in switch}}
}