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
/
pragma-pack-2.cpp
blob
375495bb48411619400944a4a8ca5ad4c9f442e8
1
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.2 %s -emit-llvm -o - | FileCheck %s
2
3
struct
FOO
{
4
unsigned int
x
;
5
};
6
7
#pragma pack(push, 2)
8
9
// CHECK: %struct.BAR = type <{ %struct.FOO, i8, i8 }>
10
struct
BAR
:
FOO
{
11
char
y
;
12
};
13
14
#pragma pack(pop)
15
16
BAR
f
(
BAR x
) {
17
return
x
;
18
}