1 // RUN: %clang_cc1 -verify -Wno-covered-switch-default %s 2 // expected-no-diagnostics 3 4 enum E { 5 one, 6 two, 7 three, 8 four 9 }; 10 11 test(enum E e)12int test(enum E e) 13 { 14 switch (e) 15 { 16 case one: 17 return 7; 18 case two ... two + 1: 19 return 42; 20 case four: 21 return 25; 22 default: 23 return 0; 24 } 25 } 26