llvm-project
43 строки · 466.0 Байт
1// RUN: %clang_cc1 -emit-llvm-only %s
2
3typedef struct {
4unsigned f0;
5} s0;
6
7@interface A
8- (s0) f0;
9@end
10
11@implementation A
12-(s0) f0{ while (1) {} }
13- (unsigned) bar {
14return self.f0.f0;
15}
16@end
17
18
19typedef struct _NSSize {
20float width;
21float height;
22} NSSize;
23
24
25@interface AnObject
26{
27NSSize size;
28}
29
30@property NSSize size;
31
32@end
33
34float f (void)
35{
36AnObject* obj;
37return (obj.size).width;
38}
39
40void test3(AnObject *obj) {
41obj.size;
42(void) obj.size;
43}
44