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-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
short-enums.cpp
blob
ca713b73341061c6e1983f74db37f8a0926cd37e
1
// RUN: %clang_cc1 -fshort-enums -fsyntax-only %s
2
3
// This shouldn't crash: PR9474
4
5
enum
E
{
VALUE_1
};
6
7
template
<
typename T
>
8
struct
A
{};
9
10
template
<
E Enum
>
11
struct
B
:
A
<
B
<
Enum
> > {};
12
13
void
bar
(
int
x
) {
14
switch
(
x
) {
15
case sizeof
(
B
<
VALUE_1
>): ;
16
}
17
}