diff options
Diffstat (limited to 'test/SemaObjC/arc-unavailable-for-weakref.m')
-rw-r--r-- | test/SemaObjC/arc-unavailable-for-weakref.m | 4 |
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 |