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.cpp
blob
aecd2cf52e0e35f277a970fc2e7c9a5a6ffdb56a
1
// RUN: %clang_cc1 %s -triple=i686-apple-darwin10 -emit-llvm -o - | FileCheck %s
2
3
struct
Base
{
4
virtual
~
Base
();
5
int
x
;
6
};
7
8
#pragma pack(1)
9
struct
Sub
:
virtual
Base
{
10
char
c
;
11
};
12
13
// CHECK: %struct.Sub = type <{ ptr, i8, %struct.Base }>
14
Sub
f
(
Sub x
) {
15
return
x
;
16
}
17
18
static int
i
[
sizeof
(
Sub
) ==
13
?
1
: -
1
];