☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGenCXX
/
2007-10-01-StructResize.cpp
☽
☼
clang/test/CodeGenCXX/2007-10-01-StructResize.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 -emit-llvm %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
void Foo(Bork *hdr) {
11
hdr->f1 = 7;
12
hdr->f2 = 927;
13
}