blob: 2e1bc6edf8c40598bc6b76670effa7479714ae8e [file] [log] [blame]
Douglas Gregore6e03612009-09-18 22:15:54 +00001void f(int i, int j = 2, int k = 5);
Douglas Gregorb3d45252009-09-22 21:42:17 +00002void f(float x, float y...);
Douglas Gregore6e03612009-09-18 22:15:54 +00003
4void test() {
Douglas Gregorb657f112009-09-22 21:11:38 +00005 ::
6 // RUN: clang-cc -fsyntax-only -code-completion-at=%s:5:5 %s -o - | FileCheck -check-prefix=CC1 %s &&
Douglas Gregore6e03612009-09-18 22:15:54 +00007 // CHECK-CC1: f(<#int i#>{#, <#int j#>{#, <#int k#>#}#})
Douglas Gregorb3d45252009-09-22 21:42:17 +00008 // CHECK-CC1: f(<#float x#>, <#float y#><#, ...#>)
Douglas Gregorb657f112009-09-22 21:11:38 +00009 // RUN: true