1*02690ba6SDouglas Gregor typedef int Integer; 2*02690ba6SDouglas Gregor 3*02690ba6SDouglas Gregor #if 0 4*02690ba6SDouglas Gregor 5*02690ba6SDouglas Gregor 6*02690ba6SDouglas Gregor #endif 7*02690ba6SDouglas Gregor 8*02690ba6SDouglas Gregor /* blah */ 9*02690ba6SDouglas Gregor 10*02690ba6SDouglas Gregor void f0(const char*); 11*02690ba6SDouglas Gregor void f1(char); 12*02690ba6SDouglas Gregor 13*02690ba6SDouglas Gregor const char *hello = "Hello, world"; 14*02690ba6SDouglas Gregor const char a = 'a'; 15*02690ba6SDouglas Gregor 16*02690ba6SDouglas Gregor #define FOO(a, b) a b 17*02690ba6SDouglas Gregor 18*02690ba6SDouglas Gregor FOO(int, x); 19*02690ba6SDouglas Gregor 20*02690ba6SDouglas Gregor // RUN: c-index-test -code-completion-at=%s:5:1 -pedantic %s 2> %t.err | FileCheck %s 21*02690ba6SDouglas Gregor // RUN: not grep error %t.err 22*02690ba6SDouglas Gregor // CHECK: {TypedText Integer} 23*02690ba6SDouglas Gregor // RUN: c-index-test -code-completion-at=%s:8:6 -pedantic %s 2> %t.err 24*02690ba6SDouglas Gregor // RUN: not grep error %t.err 25*02690ba6SDouglas Gregor // RUN: c-index-test -code-completion-at=%s:10:28 -pedantic %s 2> %t.err 26*02690ba6SDouglas Gregor // RUN: not grep unterminated %t.err 27*02690ba6SDouglas Gregor // RUN: c-index-test -code-completion-at=%s:11:17 -pedantic %s 2> %t.err 28*02690ba6SDouglas Gregor // RUN: not grep unterminated %t.err 29*02690ba6SDouglas Gregor // RUN: c-index-test -code-completion-at=%s:18:10 -pedantic %s 2> %t.err 30*02690ba6SDouglas Gregor // RUN: not grep unterminated %t.err 31