1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
7 typedef struct CGRect CGRect;
9 extern "C" bool CGRectIsEmpty(CGRect);
14 @property CGRect bounds;
25 // CHECK: [[SRC:%.*]] = call { ptr, i32 } @objc_msgSend
26 // CHECK-NEXT:getelementptr inbounds { ptr, i32 }, ptr [[SRC:%.*]]
27 // CHECK-NEXT:extractvalue
29 // CHECK-NEXT:getelementptr inbounds { ptr, i32 }, ptr [[SRC:%.*]]
30 // CHECK-NEXT:extractvalue
32 dataRect = CGRectIsEmpty(virtualBounds) ? self.bounds : virtualBounds;
33 dataRect = CGRectIsEmpty(virtualBounds) ? [self bounds] : virtualBounds;
34 dataRect = CGRectIsEmpty(virtualBounds) ? virtualBounds : self.bounds;
36 dataRect = CGRectIsEmpty(virtualBounds) ? self.out : virtualBounds;
37 dataRect = CGRectIsEmpty(virtualBounds) ? [self out] : virtualBounds;
38 dataRect = CGRectIsEmpty(virtualBounds) ? virtualBounds : self.out;
42 - (CGRect) out { return out; }