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
/
CodeGenObjC
/
layout-bitfield-crash.m
blob
6f0943e927b592b3eda9969696c84056c6daf6a3
1
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-gc -emit-llvm -debug-info-kind=limited -o - %s
2
// Check that this doesn't crash when compiled with debugging on.
3
@class Foo;
4
typedef struct Bar *BarRef;
5
6
@interface Baz
7
@end
8
9
@interface Foo
10
- (void) setFlag;
11
@end
12
13
@implementation Baz
14
15
- (void) a:(BarRef)b
16
{
17
Foo* view = (Foo*)self;
18
[view setFlag];
19
}
20
21
@end
22
23
24
@implementation Foo
25
{
26
int flag : 1;
27
}
28
29
- (void) setFlag
30
{
31
if (!flag)
32
flag = 1;
33
}
34
35
@end