Keep the source location of the selector in ObjCMessageExpr.
[clang.git] / test / SemaObjC / protocol-lookup-2.m
blobbf0752312e44886ade40be8e0cc89caccb2af2f6
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 @interface NSObject @end
4 @protocol ProtocolA
6 + (id)classMethod;
7 - (id)instanceMethod;
9 @end
11 @protocol ProtocolB <ProtocolA>
13 @end
15 @interface Foo : NSObject <ProtocolB>
17 @end
19 @interface SubFoo : Foo
21 @end
23 @implementation SubFoo
25 + (id)method {
26   return [super classMethod];
29 - (id)method {
30   return [super instanceMethod];
33 @end