summaryrefslogtreecommitdiff
path: root/test/SemaObjC/iboutlet.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/iboutlet.m')
-rw-r--r--test/SemaObjC/iboutlet.m12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/SemaObjC/iboutlet.m b/test/SemaObjC/iboutlet.m
index 597c4e4628728..7bd86d4668b3a 100644
--- a/test/SemaObjC/iboutlet.m
+++ b/test/SemaObjC/iboutlet.m
@@ -1,7 +1,6 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -Wno-objc-root-class -Wreceiver-is-weak -Warc-repeated-use-of-weak -fobjc-runtime-has-weak -verify %s
-// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -fobjc-arc -Wno-objc-root-class -Wreceiver-is-weak -Warc-repeated-use-of-weak -fobjc-runtime-has-weak -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -Wno-objc-root-class -Warc-repeated-use-of-weak -fobjc-runtime-has-weak -verify %s
+// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -fobjc-arc -Wno-objc-root-class -Warc-repeated-use-of-weak -fobjc-runtime-has-weak -verify %s
// rdar://11448209
-// rdar://20259376
#define READONLY readonly
@@ -42,6 +41,7 @@ IBInspectable @property (readonly) IBOutlet NSView *myView1; // expected-warning
// rdar://15885642
@interface WeakOutlet
+@property int Number;
@property IBOutlet __weak WeakOutlet* WeakProp;
@end
@@ -51,3 +51,9 @@ WeakOutlet* func() {
pwi.WeakProp = pwi.WeakProp;
return pwi.WeakProp;
}
+
+WeakOutlet* func2(WeakOutlet* pwi) {
+ [[pwi WeakProp] setNumber:0];
+ [[pwi WeakProp] setNumber:1];
+ return [pwi WeakProp];
+}