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
/
CodeGen
/
2003-09-30-StructLayout.c
blob
45ef69ce60f818a5c30b629798c9baf5a190dff0
1
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
3
enum
En
{
4
ENUM_VAL
5
};
6
7
struct
St
{
8
unsigned char
A
;
9
enum
En B
;
10
unsigned char
C
;
11
enum
En D
;
12
float
E
;
13
};
14
15
16
void
func
(
struct
St
*
A
) {
17
A
->
D
=
ENUM_VAL
;
18
}