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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
Sema
/
enum-packed.c
blob
b6ba972ed686366d739d5465fd3a9b03f0756db6
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
4
// PR7477
5
enum
__attribute__
((
packed
))
E
{
6
Ea
,
Eb
,
Ec
,
Ed
7
};
8
9
void
test_E
(
enum
E e
) {
10
switch
(
e
) {
11
case
Ea
:
12
case
Eb
:
13
case
Ec
:
14
case
Ed
:
15
break
;
16
}
17
}