summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-06-21 18:43:08 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-06-21 18:43:08 +0000
commit45337f53df6552693f6a2f94fa5b1f30e30747b3 (patch)
treed07f687382f2ce3c8b65d1b285f82c018d6d38dc /clang/test
parentf06b731fed378eee6ec18aa1e21c1e73602d687d (diff)
downloadbcm5719-llvm-45337f53df6552693f6a2f94fa5b1f30e30747b3.tar.gz
bcm5719-llvm-45337f53df6552693f6a2f94fa5b1f30e30747b3.zip
objective-c: deprecated C-like parameters in Objective-C
method declarations. // rdar://11578353. llvm-svn: 158929
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaObjC/method-prototype-scope.m4
-rw-r--r--clang/test/SemaObjC/mismatched-undefined-method.m2
-rw-r--r--clang/test/SemaObjC/objc-cstyle-args-in-methods.m2
-rw-r--r--clang/test/SemaObjC/protocols.m2
-rw-r--r--clang/test/SemaObjC/related-result-type-inference.m2
5 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/SemaObjC/method-prototype-scope.m b/clang/test/SemaObjC/method-prototype-scope.m
index 0bebd9b029d..c581500d02c 100644
--- a/clang/test/SemaObjC/method-prototype-scope.m
+++ b/clang/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/clang/test/SemaObjC/mismatched-undefined-method.m b/clang/test/SemaObjC/mismatched-undefined-method.m
index 936e892020d..c41d142a408 100644
--- a/clang/test/SemaObjC/mismatched-undefined-method.m
+++ b/clang/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/clang/test/SemaObjC/objc-cstyle-args-in-methods.m b/clang/test/SemaObjC/objc-cstyle-args-in-methods.m
index d37b5897b11..ebc7192f0f5 100644
--- a/clang/test/SemaObjC/objc-cstyle-args-in-methods.m
+++ b/clang/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/clang/test/SemaObjC/protocols.m b/clang/test/SemaObjC/protocols.m
index ca38f20fbd0..eb273410076 100644
--- a/clang/test/SemaObjC/protocols.m
+++ b/clang/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/clang/test/SemaObjC/related-result-type-inference.m b/clang/test/SemaObjC/related-result-type-inference.m
index 90671145a61..b1d77dc1727 100644
--- a/clang/test/SemaObjC/related-result-type-inference.m
+++ b/clang/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
OpenPOWER on IntegriCloud