repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
gnu-case-ranges.cpp
blob
c613cecbc5a9f4b64de704156d6a3dc38a91fbce
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
12
int
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
}