summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/arc-unavailable-for-weakref.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/arc-unavailable-for-weakref.m')
-rw-r--r--test/SemaObjC/arc-unavailable-for-weakref.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaObjC/arc-unavailable-for-weakref.m b/test/SemaObjC/arc-unavailable-for-weakref.m
index b9b5cc5..eab5f2c 100644
--- a/test/SemaObjC/arc-unavailable-for-weakref.m
+++ b/test/SemaObjC/arc-unavailable-for-weakref.m
@@ -86,3 +86,7 @@ __attribute__((objc_arc_weak_reference_unavailable))
@implementation I2 // expected-note {{when implemented by class I2}}
@synthesize font = _font;
@end
+
+__attribute__((objc_arc_weak_reference_unavailable(1))) // expected-error {{'objc_arc_weak_reference_unavailable' attribute takes no arguments}}
+@interface I3
+@end
OpenPOWER on IntegriCloud