[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / complete-unterminated.c
blob56e6ae13786ef0c76d7f5567ffad5d67b26c9b9c
1 typedef int Integer;
3 #if 0
6 #endif
8 /* blah */
10 void f0(const char*);
11 void f1(char);
13 const char *hello = "Hello, world";
14 const char a = 'a';
16 #define FOO(a, b) a b
18 FOO(int, x);
20 // RUN: c-index-test -code-completion-at=%s:5:1 -pedantic %s 2> %t.err | FileCheck %s
21 // RUN: not grep error %t.err
22 // CHECK: {TypedText Integer}
23 // RUN: c-index-test -code-completion-at=%s:8:6 -pedantic %s 2> %t.err
24 // RUN: not grep error %t.err
25 // RUN: c-index-test -code-completion-at=%s:10:28 -pedantic %s 2> %t.err
26 // RUN: not grep unterminated %t.err
27 // RUN: c-index-test -code-completion-at=%s:11:17 -pedantic %s 2> %t.err
28 // RUN: not grep unterminated %t.err
29 // RUN: c-index-test -code-completion-at=%s:18:10 -pedantic %s 2> %t.err
30 // RUN: not grep unterminated %t.err