xref: /llvm-project/clang/test/Index/rdar12316296-codecompletion.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: c-index-test -write-pch %t.h.pch %s
2// RUN: c-index-test -code-completion-at=%s:19:1 %s -include %t.h | FileCheck %s
3
4// clang Code Completion returns nothing but preprocessor macros
5
6#ifndef HEADER
7#define HEADER
8
9@interface I
10@end
11
12// CHECK: FunctionDecl:{ResultType void}{TypedText foo}
13void foo();
14
15#else
16
17@implementation I
18-(void)meth {
19
20}
21@end
22
23#endif
24