diff options
author | dim <dim@FreeBSD.org> | 2015-12-30 11:49:41 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-12-30 11:49:41 +0000 |
commit | 3176e97f130184ece0e1a21352c8124cc83ff24a (patch) | |
tree | 0a5b74c0b9ca73aded34df95c91fcaf3815230d8 /test/ARCMT/checking.m | |
parent | 1e9b8d38881c3213d1e67b0c47ab9b2c00721a5c (diff) | |
download | FreeBSD-src-3176e97f130184ece0e1a21352c8124cc83ff24a.zip FreeBSD-src-3176e97f130184ece0e1a21352c8124cc83ff24a.tar.gz |
Vendor import of clang trunk r256633:
https://llvm.org/svn/llvm-project/cfe/trunk@256633
Diffstat (limited to 'test/ARCMT/checking.m')
-rw-r--r-- | test/ARCMT/checking.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ARCMT/checking.m b/test/ARCMT/checking.m index 6a7cf76..0ce894c 100644 --- a/test/ARCMT/checking.m +++ b/test/ARCMT/checking.m @@ -44,9 +44,9 @@ struct UnsafeS { }; @interface A : NSObject -- (id)retain; // expected-note {{'retain' has been explicitly marked unavailable here}} -- (id)retainCount; // expected-note {{'retainCount' has been explicitly marked unavailable here}} -- (id)autorelease; // expected-note 2 {{'autorelease' has been explicitly marked unavailable here}} +- (id)retain __attribute__((unavailable)); // expected-note {{'retain' has been explicitly marked unavailable here}} +- (id)retainCount __attribute__((unavailable)); // expected-note {{'retainCount' has been explicitly marked unavailable here}} +- (id)autorelease __attribute__((unavailable)); // expected-note 2 {{'autorelease' has been explicitly marked unavailable here}} - (id)init; - (oneway void)release; - (void)dealloc; @@ -180,7 +180,7 @@ void test6(unsigned cond) { switch (cond) { case 0: ; - id x; // expected-note {{jump bypasses initialization of retaining variable}} + id x; // expected-note {{jump bypasses initialization of __strong variable}} case 1: // expected-error {{cannot jump}} x = 0; |