xref: /llvm-project/clang/test/SemaObjC/undef-arg-super-method-call.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3@interface NSObject @end
4
5@interface DBGViewDebuggerSupport : NSObject
6+ (void)addViewLayerInfo:(id)view;
7- (void)addInstViewLayerInfo:(id)view;
8@end
9
10@interface DBGViewDebuggerSupport_iOS : DBGViewDebuggerSupport
11@end
12
13@implementation DBGViewDebuggerSupport_iOS
14+ (void)addViewLayerInfo:(id)aView; // expected-note {{'aView' declared here}}
15{
16    [super addViewLayerInfo:view]; // expected-error {{use of undeclared identifier 'view'; did you mean 'aView'?}}
17}
18- (void)addInstViewLayerInfo:(id)aView; // expected-note {{'aView' declared here}}
19{
20    [super addInstViewLayerInfo:view]; // expected-error {{use of undeclared identifier 'view'; did you mean 'aView'?}}
21}
22@end
23