repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
pragma-pack.m
blob
836255251a636e4aceb9a81cadad6786d9cf4b50
1
// RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s
2
// expected-no-diagnostics
3
4
// Make sure pragma pack works inside ObjC methods.
5
@interface X
6
@end
7
@implementation X
8
- (void)Y {
9
#pragma pack(push, 1)
10
struct x {
11
char a;
12
int b;
13
};
14
#pragma pack(pop)
15
typedef char check_[sizeof (struct x) == 5 ? 1 : -1];
16
}
17
@end