Home | History | Annotate | Download | only in Index
      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}
     13 void foo();
     14 
     15 #else
     16 
     17 @implementation I
     18 -(void)meth {
     19 
     20 }
     21 @end
     22 
     23 #endif
     24