xref: /llvm-project/clang/test/CodeCompletion/functions.cpp (revision cf9b25e0adc42546e4dc5ff51ee8674d45bac26b)
1 void f(int i, int j = 2, int k = 5);
2 void f(float x, float y...);
3 
test()4 void test() {
5   ::
6   // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):5 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
7   // CHECK-CC1: f(<#int i#>{#, <#int j = 2#>{#, <#int k = 5#>#}#})
8   // CHECK-CC1: f(<#float x#>, <#float y, ...#>)
9