minix/external/bsd/llvm/dist/clang/test/Index/rdar12316296-codecompletion.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

23 lines
384 B
Objective-C

// RUN: c-index-test -write-pch %t.h.pch %s
// RUN: c-index-test -code-completion-at=%s:19:1 %s -include %t.h | FileCheck %s
// <rdar://12316296> clang Code Completion returns nothing but preprocessor macros
#ifndef HEADER
#define HEADER
@interface I
@end
// CHECK: FunctionDecl:{ResultType void}{TypedText foo}
void foo();
#else
@implementation I
-(void)meth {
}
@end
#endif