repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git]
/
test
/
FrontendC++
/
2007-10-01-StructResize.cpp
blob
71109eb7b6a5dd00d8c5d77536d272b871a7e5c6
1
// RUN: %llvmgxx -S %s -o /dev/null
2
3
#pragma pack(4)
4
5
struct
Bork
{
6
unsigned int
f1
:
3
;
7
unsigned int
f2
:
30
;
8
};
9
10
int
Foo
(
Bork
*
hdr
) {
11
hdr
->
f1
=
7
;
12
hdr
->
f2
=
927
;
13
}
14