aboutsummaryrefslogtreecommitdiff
path: root/test/CodeCompletion/functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeCompletion/functions.cpp')
-rw-r--r--test/CodeCompletion/functions.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeCompletion/functions.cpp b/test/CodeCompletion/functions.cpp
new file mode 100644
index 0000000000..f722e9a07e
--- /dev/null
+++ b/test/CodeCompletion/functions.cpp
@@ -0,0 +1,9 @@
+// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s &&
+// RUN: true
+void f(int i, int j = 2, int k = 5);
+void f(float x, float y);
+
+void test() {
+ // CHECK-CC1: f(<#int i#>{#, <#int j#>{#, <#int k#>#}#})
+ // CHECK-CC1: f(<#float x#>, <#float y#>)
+ ::