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