diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-21 18:43:08 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-21 18:43:08 +0000 |
commit | 56242baaae6c45b24fbdd5bc56fe4ee516fa9e6b (patch) | |
tree | 4e68e2f729b1ec334adccce24200727018f6d95b /test | |
parent | e48601573b9631600f563957476edb3b9cd41387 (diff) |
objective-c: deprecated C-like parameters in Objective-C
method declarations.
// rdar://11578353.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/SemaObjC/method-prototype-scope.m | 4 | ||||
-rw-r--r-- | test/SemaObjC/mismatched-undefined-method.m | 2 | ||||
-rw-r--r-- | test/SemaObjC/objc-cstyle-args-in-methods.m | 2 | ||||
-rw-r--r-- | test/SemaObjC/protocols.m | 2 | ||||
-rw-r--r-- | test/SemaObjC/related-result-type-inference.m | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/test/SemaObjC/method-prototype-scope.m b/test/SemaObjC/method-prototype-scope.m index 0bebd9b029..c581500d02 100644 --- a/test/SemaObjC/method-prototype-scope.m +++ b/test/SemaObjC/method-prototype-scope.m @@ -7,7 +7,7 @@ int object; @class NSString, NSArray; @interface Test -- Func:(int)XXXX, id object; +- Func:(int)XXXX, id object; // expected-warning {{use of C-style parameters in Objective-C method declarations is deprecated}} - doSomethingElseWith:(id)object; @@ -23,7 +23,7 @@ int object; return object; // expected-warning {{incompatible pointer types returning 'NSArray *' from a function with result type 'NSString *'}} } -- Func:(int)XXXX, id object { return object; } +- Func:(int)XXXX, id object { return object; } // expected-warning {{use of C-style parameters in Objective-C method declarations is deprecated}} - doSomethingElseWith:(id)object { return object; } diff --git a/test/SemaObjC/mismatched-undefined-method.m b/test/SemaObjC/mismatched-undefined-method.m index 936e892020..c41d142a40 100644 --- a/test/SemaObjC/mismatched-undefined-method.m +++ b/test/SemaObjC/mismatched-undefined-method.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s // rdar://11460990 typedef unsigned int CGDirectDisplayID; diff --git a/test/SemaObjC/objc-cstyle-args-in-methods.m b/test/SemaObjC/objc-cstyle-args-in-methods.m index d37b5897b1..ebc7192f0f 100644 --- a/test/SemaObjC/objc-cstyle-args-in-methods.m +++ b/test/SemaObjC/objc-cstyle-args-in-methods.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify -Wno-objc-root-class %s @interface Foo - (id)test:(id)one, id two; diff --git a/test/SemaObjC/protocols.m b/test/SemaObjC/protocols.m index ca38f20fbd..eb27341007 100644 --- a/test/SemaObjC/protocols.m +++ b/test/SemaObjC/protocols.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s @interface INTF1 @required // expected-error {{directive may only be specified in protocols only}} diff --git a/test/SemaObjC/related-result-type-inference.m b/test/SemaObjC/related-result-type-inference.m index 90671145a6..b1d77dc172 100644 --- a/test/SemaObjC/related-result-type-inference.m +++ b/test/SemaObjC/related-result-type-inference.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -verify -Wno-objc-root-class %s +// RUN: %clang_cc1 -verify -Wno-deprecated-declarations -Wno-objc-root-class %s @interface Unrelated @end |