view tools/clang/test/Index/rdar12316296-codecompletion.m @ 53:f679cc5126db

include setjmp.h automatically
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Sat, 18 Jan 2014 23:56:19 +0900
parents 95c75e76d11b
children
line wrap: on
line source

// 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