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
/
CodeGenCXX
/
2007-04-05-PackedBitFields-1.cpp
blob
6c39b55fd33e7104f4e2acde42b8e8de61828b25
1
// RUN: %clang_cc1 -emit-llvm %s -o -
2
3
#ifdef PACKED
4
#define P __attribute__((packed))
5
#else
6
#define P
7
#endif
8
9
struct
P M_Packed
{
10
unsigned int
l_Packed
;
11
unsigned short
k_Packed
:
6
,
12
i_Packed
:
15
,
13
j_Packed
:
11
;
14
15
};
16
17
struct
M_Packed sM_Packed
;
18
19
int
testM_Packed
(
void
) {
20
struct
M_Packed x
;
21
return
(
x
.
i_Packed
!=
0
);
22
}