1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
25 lines
337 B
C++
25 lines
337 B
C++
// RUN: %clang_cc1 -verify -Wno-covered-switch-default %s
|
|
|
|
enum E {
|
|
one,
|
|
two,
|
|
three,
|
|
four
|
|
};
|
|
|
|
|
|
int test(enum E e)
|
|
{
|
|
switch (e)
|
|
{
|
|
case one:
|
|
return 7;
|
|
case two ... two + 1:
|
|
return 42;
|
|
case four:
|
|
return 25;
|
|
default:
|
|
return 0;
|
|
}
|
|
}
|