31 lines · c
1typedef int Integer;2 3#if 04 5 6#endif7 8/* blah */9 10void f0(const char*);11void f1(char);12 13const char *hello = "Hello, world";14const char a = 'a';15 16#define FOO(a, b) a b17 18FOO(int, x);19 20// RUN: c-index-test -code-completion-at=%s:5:1 -pedantic %s 2> %t.err | FileCheck %s21// RUN: not grep error %t.err22// CHECK: {TypedText Integer}23// RUN: c-index-test -code-completion-at=%s:8:6 -pedantic %s 2> %t.err24// RUN: not grep error %t.err25// RUN: c-index-test -code-completion-at=%s:10:28 -pedantic %s 2> %t.err26// RUN: not grep unterminated %t.err27// RUN: c-index-test -code-completion-at=%s:11:17 -pedantic %s 2> %t.err28// RUN: not grep unterminated %t.err29// RUN: c-index-test -code-completion-at=%s:18:10 -pedantic %s 2> %t.err30// RUN: not grep unterminated %t.err31