blob: 5467717bbc77e17a8782b578b52692e8852d9e21 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// Note: the run lines follow their respective tests, since line/column
2// matter in this test.
3void f(float x, float y);
4void f(int i, int j, int k);
5struct X { };
6void f(X);
7namespace N {
8 struct Y {
9 Y(int = 0);
10
11 operator int() const;
12 };
13 void f(Y y, int ZZ);
14}
15typedef N::Y Y;
16void f();
17
18void test() {
19 f(Y(), 0, 0);
20 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:19:9 %s -o - | FileCheck -check-prefix=CC1 %s
21 // CHECK-CC1: f(struct N::Y y, <#int ZZ#>)
22 // CHECK-CC1-NEXT: f(int i, <#int j#>, int k)
23 // CHECK-CC1-NEXT: f(float x, <#float y#>)
24 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:19:13 %s -o - | FileCheck -check-prefix=CC2 %s
25 // CHECK-CC2-NOT: f(struct N::Y y, int ZZ)
26 // CHECK-CC2: f(int i, int j, <#int k#>)
27}