mirror of
https://github.com/opnsense/src.git
synced 2026-03-02 13:20:37 -05:00
33 lines
382 B
Objective-C
33 lines
382 B
Objective-C
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
@interface NSObject @end
|
|
|
|
@protocol ProtocolA
|
|
|
|
+ (id)classMethod;
|
|
- (id)instanceMethod;
|
|
|
|
@end
|
|
|
|
@protocol ProtocolB <ProtocolA>
|
|
|
|
@end
|
|
|
|
@interface Foo : NSObject <ProtocolB>
|
|
|
|
@end
|
|
|
|
@interface SubFoo : Foo
|
|
|
|
@end
|
|
|
|
@implementation SubFoo
|
|
|
|
+ (id)method {
|
|
return [super classMethod];
|
|
}
|
|
|
|
- (id)method {
|
|
return [super instanceMethod];
|
|
}
|
|
|
|
@end
|