diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-12-27 03:38:18 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-12-27 03:38:18 +0000 |
commit | c33b2fd0add3d1a77b19874c6a1dd91f5a59f8a3 (patch) | |
tree | 88d87c426524b9fbc27965c5aa07d6345fa8de80 /clang/test/SemaObjC | |
parent | 1c161a35b72007d36f20dd2473448a24aef91a75 (diff) | |
download | bcm5719-llvm-c33b2fd0add3d1a77b19874c6a1dd91f5a59f8a3.tar.gz bcm5719-llvm-c33b2fd0add3d1a77b19874c6a1dd91f5a59f8a3.zip |
Make the test from r224873 actually pass.
The behavior looks incorrect to me, but the test is supposed to document
current behavior for now.
llvm-svn: 224875
Diffstat (limited to 'clang/test/SemaObjC')
-rw-r--r-- | clang/test/SemaObjC/attr-deprecated.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/attr-deprecated.m b/clang/test/SemaObjC/attr-deprecated.m index 02acf2ced22..416e4641011 100644 --- a/clang/test/SemaObjC/attr-deprecated.m +++ b/clang/test/SemaObjC/attr-deprecated.m @@ -263,9 +263,11 @@ const char * func() { @end @interface InterfaceWithSameMethodAsUndeclaredImpl -- (void)partiallyUnavailableMethod __attribute__((unavailable)); +- (void)partiallyUnavailableMethod __attribute__((unavailable)); // expected-note{{explicitly marked unavailable here}} @end void f(id a) { - [a partiallyUnavailableMethod]; // no warning, `a` could be an UndeclaredImpl. + // FIXME: Warning on this looks incorrect, since `a` could be an + // UndeclaredImpl object, where this method isn't inavailable. + [a partiallyUnavailableMethod]; // expected-error{{is unavailable}} } |