opnsense-src/test/CodeCompletion/functions.cpp

9 lines
308 B
C++
Raw Normal View History

2009-10-14 14:03:49 -04:00
void f(int i, int j = 2, int k = 5);
void f(float x, float y...);
void test() {
::
2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:5:5 %s -o - | FileCheck -check-prefix=CC1 %s
2009-10-14 14:03:49 -04:00
// CHECK-CC1: f(<#int i#>{#, <#int j#>{#, <#int k#>#}#})
// CHECK-CC1: f(<#float x#>, <#float y#><#, ...#>)