1 int f(int i, int j = 2, int k = 5);
2 int f(float x, float y...);
3 
4 class A {
5  public:
6   A(int, int, int);
7 };
8 
9 void test() {
10   A a(f(1, 2, 3, 4), 2, 3);
11 }
12 
13 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
14 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:10 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
15 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:17 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
16 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:19 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
17 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:20 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
18 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:21 %s -o - | FileCheck -check-prefix=CHECK-CC4 %s
19 // CHECK-CC1: OVERLOAD: [#int#]f(<#float x#>, float y)
20 // CHECK-CC1: OVERLOAD: [#int#]f(<#int i#>)
21 // CHECK-CC1-NOT, CHECK-CC2-NOT: OVERLOAD: A(
22 // CHECK-CC2: OVERLOAD: [#int#]f(float x, float y)
23 // CHECK-CC2-NOT: OVERLOAD: [#int#]f(int i)
24 // CHECK-CC3: OVERLOAD: A(<#int#>, int, int)
25 // CHECK-CC3: OVERLOAD: A(<#const A &#>)
26 // CHECK-CC3: OVERLOAD: A(<#A &&#>)
27 // CHECK-CC4: OVERLOAD: A(int, <#int#>, int)
28