Douglas Gregor | 9c6a0e9 | 2009-09-22 15:41:20 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s && |
| 2 | // RUN: true |
| 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); |
| 14 | } |
| 15 | typedef N::Y Y; |
| 16 | void f(); |
| 17 | |
| 18 | void test() { |
| 19 | // CHECK-CC1: f : 0 : f(<#struct N::Y y#>) |
| 20 | // CHECK-NEXT-CC1: f : 0 : f(<#int i#>, <#int j#>, <#int k#>) |
| 21 | // CHECK-NEXT-CC1: f : 0 : f(<#float x#>, <#float y#>) |
| 22 | f(Y(), |