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] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2009-12-07-BitFieldAlignment.c
blob
72c30e13c95568b1c636cbb1d94eab1441053a67
1
// RUN: %clang_cc1 -triple i686-apple-darwin %s -emit-llvm -o - | FileCheck %s
2
// Set alignment on bitfield accesses.
3
4
struct
S
{
5
int
a
,
b
;
6
void
*
c
;
7
unsigned
d
:
8
;
8
unsigned
e
:
8
;
9
};
10
11
void
f0
(
struct
S
*
a
) {
12
// CHECK: load {{.*}}, align 4
13
// CHECK: store {{.*}}, align 4
14
a
->
e
=
0
;
15
}