36 lines · plain
1// Note: the run lines follow their respective tests, since line/column2// matter in this test.3 4@protocol FooTestProtocol5+ protocolClassMethod;6- protocolInstanceMethod;7@end8@interface Foo <FooTestProtocol> {9 void *isa;10}11+ (int)classMethod1:a withKeyword:b;12+ (void)classMethod2;13+ new;14- instanceMethod1;15@end16 17@interface Foo (FooTestCategory)18+ categoryClassMethod;19- categoryInstanceMethod;20@end21 22void func() {23 Foo *obj = [Foo new];24 [obj xx];25}26// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-3):19 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s27// CHECK-CC1: categoryClassMethod28// CHECK-CC1: classMethod1:withKeyword:29// CHECK-CC1: classMethod230// CHECK-CC1: new31// CHECK-CC1: protocolClassMethod32// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-8):8 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s33// CHECK-CC2: categoryInstanceMethod34// CHECK-CC2: instanceMethod135// CHECK-CC2: protocolInstanceMethod36