xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/super-dotsyntax-struct-property.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin10  -emit-llvm %s -o -  | FileCheck %s
2*f4a2713aSLionel Sambuc// rdar: // 8203426
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc
5*f4a2713aSLionel Sambuctypedef double CGFloat;
6*f4a2713aSLionel Sambucstruct CGPoint {
7*f4a2713aSLionel Sambuc  CGFloat x;
8*f4a2713aSLionel Sambuc  CGFloat y;
9*f4a2713aSLionel Sambuc};
10*f4a2713aSLionel Sambuctypedef struct CGPoint CGPoint;
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambuc
13*f4a2713aSLionel Sambuc
14*f4a2713aSLionel Sambucstruct CGSize {
15*f4a2713aSLionel Sambuc  CGFloat width;
16*f4a2713aSLionel Sambuc  CGFloat height;
17*f4a2713aSLionel Sambuc};
18*f4a2713aSLionel Sambuctypedef struct CGSize CGSize;
19*f4a2713aSLionel Sambuc
20*f4a2713aSLionel Sambuc
21*f4a2713aSLionel Sambucstruct CGRect {
22*f4a2713aSLionel Sambuc  CGPoint origin;
23*f4a2713aSLionel Sambuc  CGSize size;
24*f4a2713aSLionel Sambuc};
25*f4a2713aSLionel Sambuctypedef struct CGRect CGRect;
26*f4a2713aSLionel Sambuc
27*f4a2713aSLionel Sambuc@interface UIView {
28*f4a2713aSLionel Sambuc}
29*f4a2713aSLionel Sambuc@property CGRect frame;
30*f4a2713aSLionel Sambuc@end
31*f4a2713aSLionel Sambuc
32*f4a2713aSLionel Sambuc@interface crashclass : UIView {
33*f4a2713aSLionel Sambuc
34*f4a2713aSLionel Sambuc}
35*f4a2713aSLionel Sambuc
36*f4a2713aSLionel Sambuc@end
37*f4a2713aSLionel Sambuc
38*f4a2713aSLionel Sambuc@implementation crashclass
39*f4a2713aSLionel Sambuc- (void)setFrame:(CGRect)frame
40*f4a2713aSLionel Sambuc{
41*f4a2713aSLionel Sambuc        super.frame = frame;
42*f4a2713aSLionel Sambuc	[super setFrame:frame];
43*f4a2713aSLionel Sambuc}
44*f4a2713aSLionel Sambuc
45*f4a2713aSLionel Sambuc@end
46*f4a2713aSLionel Sambuc// CHECK-NOT: declare void @objc_msgSendSuper2_stret
47*f4a2713aSLionel Sambuc// CHECK: declare i8* @objc_msgSendSuper2
48