Debian Codegraph @

clang/test/CodeGenObjC/super-dotsyntax-struct-property.m

raw
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s
2
3 typedef double CGFloat;
4 struct CGPoint {
5 CGFloat x;
6 CGFloat y;
7 };
8 typedef struct CGPoint CGPoint;
9
10
11
12 struct CGSize {
13 CGFloat width;
14 CGFloat height;
15 };
16 typedef struct CGSize CGSize;
17
18
19 struct CGRect {
20 CGPoint origin;
21 CGSize size;
22 };
23 typedef struct CGRect CGRect;
24
25 @interface UIView {
26 }
27 @property CGRect frame;
28 @end
29
30 @interface crashclass : UIView {
31
32 }
33
34 @end
35
36 @implementation crashclass
37 - (void)setFrame:(CGRect)frame
38 {
39 super.frame = frame;
40 [super setFrame:frame];
41 }
42
43 @end
44 // CHECK-NOT: declare void @objc_msgSendSuper2_stret
45 // CHECK: declare ptr @objc_msgSendSuper2