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-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
CodeGenObjC
/
property-agrr-getter.m
blob
7a1b06da4f5676fdb55148628f6ffbcd6d45d22c
1
// RUN: %clang_cc1 -emit-llvm-only %s
2
3
typedef struct {
4
unsigned f0;
5
} s0;
6
7
@interface A
8
- (s0) f0;
9
@end
10
11
@implementation A
12
-(s0) f0{ while (1) {} }
13
- (unsigned) bar {
14
return self.f0.f0;
15
}
16
@end
17
18
19
typedef struct _NSSize {
20
float width;
21
float height;
22
} NSSize;
23
24
25
@interface AnObject
26
{
27
NSSize size;
28
}
29
30
@property NSSize size;
31
32
@end
33
34
float f (void)
35
{
36
AnObject* obj;
37
return (obj.size).width;
38
}
39
40
// rdar://problem/9272392
41
void test3(AnObject *obj) {
42
obj.size;
43
(void) obj.size;
44
}