aboutsummaryrefslogtreecommitdiff
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.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaObjC/arc-unavailable-for-weakref.m b/test/SemaObjC/arc-unavailable-for-weakref.m
index eab5f2ca746e..82748027435e 100644
--- a/test/SemaObjC/arc-unavailable-for-weakref.m
+++ b/test/SemaObjC/arc-unavailable-for-weakref.m
@@ -90,3 +90,5 @@ __attribute__((objc_arc_weak_reference_unavailable))
__attribute__((objc_arc_weak_reference_unavailable(1))) // expected-error {{'objc_arc_weak_reference_unavailable' attribute takes no arguments}}
@interface I3
@end
+
+int I4 __attribute__((objc_arc_weak_reference_unavailable)); // expected-error {{'objc_arc_weak_reference_unavailable' attribute only applies to Objective-C interfaces}}