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