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