diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/ARCMT/checking.m | 1 | ||||
-rw-r--r-- | clang/test/SemaObjC/attr-deprecated.m | 19 |
2 files changed, 19 insertions, 1 deletions
diff --git a/clang/test/ARCMT/checking.m b/clang/test/ARCMT/checking.m index 0e441cb1eb6..86afdf0b237 100644 --- a/clang/test/ARCMT/checking.m +++ b/clang/test/ARCMT/checking.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -arcmt-check -verify -triple x86_64-apple-darwin10 %s +// XFAIL: * #include "Common.h" diff --git a/clang/test/SemaObjC/attr-deprecated.m b/clang/test/SemaObjC/attr-deprecated.m index e90bbf94eab..571bd30e123 100644 --- a/clang/test/SemaObjC/attr-deprecated.m +++ b/clang/test/SemaObjC/attr-deprecated.m @@ -53,7 +53,7 @@ void t1(A *a) void t2(id a) { - [a f]; + [a f]; // expected-warning {{'f' is deprecated}} } void t3(A<P>* a) @@ -121,3 +121,20 @@ void test(Test2 *foo) { __attribute__((deprecated)) @interface A(Blah) // expected-error{{attributes may not be specified on a category}} @end + +// rdar://10459930 + +@class NSString; +@interface NSDocumentController +{ + id iv; +} +- (void)fileExtensionsFromType:(NSString *)typeName __attribute__((deprecated)); +@end + +@implementation NSDocumentController +- (void) Meth { + [iv fileExtensionsFromType:@"public.text"]; // expected-warning {{'fileExtensionsFromType:' is deprecated}} +} +- (void)fileExtensionsFromType:(NSString *)typeName {} +@end |