summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2015-03-30 23:30:24 +0000
committerFariborz Jahanian <fjahanian@apple.com>2015-03-30 23:30:24 +0000
commita8c2a0b0b24d915a2e8fcfaf9cdc01aafc7c0b9c (patch)
tree2f77612efcc9b0ff360636a28ff477c40901753a /clang/test/SemaObjC
parent4c302598798c99a2b9e4591cf1b3db2925f047ed (diff)
downloadbcm5719-llvm-a8c2a0b0b24d915a2e8fcfaf9cdc01aafc7c0b9c.tar.gz
bcm5719-llvm-a8c2a0b0b24d915a2e8fcfaf9cdc01aafc7c0b9c.zip
[Objective-C patch]. Amend TransformObjCMessageExpr to handle call
to 'super' of instance/class methods and not assert. rdar://20350364 llvm-svn: 233642
Diffstat (limited to 'clang/test/SemaObjC')
-rw-r--r--clang/test/SemaObjC/undef-arg-super-method-call.m23
1 files changed, 23 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/undef-arg-super-method-call.m b/clang/test/SemaObjC/undef-arg-super-method-call.m
new file mode 100644
index 00000000000..6a27acb6304
--- /dev/null
+++ b/clang/test/SemaObjC/undef-arg-super-method-call.m
@@ -0,0 +1,23 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// rdar://20350364
+
+@interface NSObject @end
+
+@interface DBGViewDebuggerSupport : NSObject
++ (void)addViewLayerInfo:(id)view;
+- (void)addInstViewLayerInfo:(id)view;
+@end
+
+@interface DBGViewDebuggerSupport_iOS : DBGViewDebuggerSupport
+@end
+
+@implementation DBGViewDebuggerSupport_iOS
++ (void)addViewLayerInfo:(id)aView; // expected-note {{'aView' declared here}}
+{
+ [super addViewLayerInfo:view]; // expected-error {{use of undeclared identifier 'view'; did you mean 'aView'?}}
+}
+- (void)addInstViewLayerInfo:(id)aView; // expected-note {{'aView' declared here}}
+{
+ [super addInstViewLayerInfo:view]; // expected-error {{use of undeclared identifier 'view'; did you mean 'aView'?}}
+}
+@end
OpenPOWER on IntegriCloud