John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s |
Fariborz Jahanian | 3d4aeda | 2010-07-24 00:34:08 +0000 | [diff] [blame] | 2 | // rdar: // 8203426 |
| 3 | |
| 4 | |
| 5 | typedef double CGFloat; |
| 6 | struct CGPoint { |
| 7 | CGFloat x; |
| 8 | CGFloat y; |
| 9 | }; |
| 10 | typedef struct CGPoint CGPoint; |
| 11 | |
| 12 | |
| 13 | |
| 14 | struct CGSize { |
| 15 | CGFloat width; |
| 16 | CGFloat height; |
| 17 | }; |
| 18 | typedef struct CGSize CGSize; |
| 19 | |
| 20 | |
| 21 | struct CGRect { |
| 22 | CGPoint origin; |
| 23 | CGSize size; |
| 24 | }; |
| 25 | typedef struct CGRect CGRect; |
| 26 | |
| 27 | @interface UIView { |
| 28 | } |
| 29 | @property CGRect frame; |
| 30 | @end |
| 31 | |
| 32 | @interface crashclass : UIView { |
| 33 | |
| 34 | } |
| 35 | |
| 36 | @end |
| 37 | |
| 38 | @implementation crashclass |
| 39 | - (void)setFrame:(CGRect)frame |
| 40 | { |
| 41 | super.frame = frame; |
| 42 | [super setFrame:frame]; |
| 43 | } |
| 44 | |
| 45 | @end |
| 46 | // CHECK-NOT: declare void @objc_msgSendSuper2_stret |
| 47 | // CHECK: declare i8* @objc_msgSendSuper2 |