blob: 59cee6536a5dd03b5880e8719464d70983c7d787 [file] [log] [blame]
Eric Liufead6ae2017-12-13 10:26:49 +00001namespace ns {
2 struct bar {
3 };
4
5 struct baz {
6 };
7
8 int func(int a, bar b, baz c);
9}
10
11void test() {
12 ns::
13// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:12:7 %s -o - | FileCheck %s --check-prefix=CHECK-1
14// CHECK-1-DAG: COMPLETION: bar : bar
15// CHECK-1-DAG: COMPLETION: baz : baz
16// CHECK-1-DAG: COMPLETION: func : [#int#]func(<#int a#>, <#bar b#>, <#baz c#>)
17
18// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:12:7 -no-code-completion-ns-level-decls %s -o - | FileCheck %s --allow-empty --check-prefix=CHECK-EMPTY
19// CHECK-EMPTY-NOT: COMPLETION: bar : bar
20// CHECK-EMPTY: {{^}}{{$}}
21}