blob: 124aba828430929cb31f08210d4983c3c0e6feac [file] [log] [blame]
Ilya Biryukov5de0c852019-07-18 15:21:34 +00001namespace a_namespace {};
2class Class { static void foo(); };
3Class::
4// Completion for a_namespace should be available at the start of the line.
5// START-OF-LINE: a_namespace
6// START-OF-LINE: Class
7// -- Using cached completions.
8// RUN: CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:1 %s \
9// RUN: | FileCheck --check-prefix=START-OF-LINE %s
10// -- Without cached completions.
11// RUN: c-index-test -code-completion-at=%s:3:1 %s \
12// RUN: | FileCheck --check-prefix=START-OF-LINE %s
13//
14//
15// ... and should not be available after 'Class::^'
16// AFTER-QUALIFIER: Class
17// -- Using cached completions.
18// RUN: CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:8 %s \
19// RUN: | FileCheck --implicit-check-not=a_namespace --check-prefix=AFTER-QUALIFIER %s
20// -- Without cached completions.
21// RUN: c-index-test -code-completion-at=%s:3:8 %s \
22// RUN: | FileCheck --implicit-check-not=a_namespace --check-prefix=AFTER-QUALIFIER %s