1 // Note: the run lines follow their respective tests, since line/column
2 // matter in this test.
3 void f(float x, float y);
4 void f(int i, int j, int k);
5 struct X { };
6 void f(X);
7 namespace N {
8   struct Y {
9     Y(int = 0);
10 
11     operator int() const;
12   };
13   void f(Y y, int);
14 }
15 typedef N::Y Y;
16 void f();
17 
18 void test() {
19   f(Y(), 0, 0);
20   // RUN: clang-cc -fsyntax-only -code-completion-at=%s:19:9 %s -o - | FileCheck -check-prefix=CC1 %s &&
21   // CHECK-CC1: f : 0 : f(<#struct N::Y y#>, <#int#>)
22   // CHECK-NEXT-CC1: f : 0 : f(<#int i#>, <#int j#>, <#int k#>)
23   // CHECK-NEXT-CC1: f : 0 : f(<#float x#>, <#float y#>)
24   // RUN: clang-cc -fsyntax-only -code-completion-at=%s:19:13 %s -o - | FileCheck -check-prefix=CC2 %s &&
25   // CHECK-NOT-CC2: f : 0 : f(<#struct N::Y y#>, <#int#>)
26   // CHECK-CC2: f : 0 : f(<#int i#>, <#int j#>, <#int k#>)
27   // CHECK-NEXT-CC2: f : 0 : f(<#float x#>, <#float y#>)
28   // RUN: true
29 }
30