2 // { dg-options "-fshort-enums -w" }
6 // We failed to compile this because CFG cleanup left the switch
7 // statement intact, whereas expand_case expected at least one
8 // in-range case to remain.
10 typedef enum _SECStatus {
17 SEC_ERROR_BAD_SIGNATURE = (-0x2000) + 10
21 void f(SECStatus status)
25 case SEC_ERROR_BAD_SIGNATURE :
26 // This case can be optimized away in C++ (but apparently not in
27 // C), because the enum type is defined with a narrow range.