xref: /minix3/external/bsd/llvm/dist/clang/test/Index/rdar12316296-codecompletion.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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// <rdar://12316296> 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