]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Index/complete-unterminated.c
Vendor import of clang release_30 branch r142614:
[FreeBSD/FreeBSD.git] / test / Index / complete-unterminated.c
1 typedef int Integer;
2
3 #if 0
4
5
6 #endif
7
8 /* blah */
9
10 void f0(const char*);
11 void f1(char);
12
13 const char *hello = "Hello, world";
14 const char a = 'a';
15
16 #define FOO(a, b) a b
17
18 FOO(int, x);
19
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