[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / gnu-case-ranges.cpp
blobc613cecbc5a9f4b64de704156d6a3dc38a91fbce
1 // RUN: %clang_cc1 -verify -Wno-covered-switch-default %s
2 // expected-no-diagnostics
4 enum E {
5 one,
6 two,
7 three,
8 four
9 };
12 int test(enum E e)
14 switch (e)
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;