blob: fcab3dcbe12080b0a6cf42fa031d23da13644dc0 [file] [log] [blame]
Douglas Gregorfedc3282009-09-18 22:15:54 +00001void f(int i, int j = 2, int k = 5);
Douglas Gregorba449032009-09-22 21:42:17 +00002void f(float x, float y...);
Douglas Gregorfedc3282009-09-18 22:15:54 +00003
4void test() {
Douglas Gregorea9b03e2009-09-22 21:11:38 +00005 ::
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00006 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:5:5 %s -o - | FileCheck -check-prefix=CC1 %s
Douglas Gregorfedc3282009-09-18 22:15:54 +00007 // CHECK-CC1: f(<#int i#>{#, <#int j#>{#, <#int k#>#}#})
Douglas Gregor400f5972010-08-31 05:13:43 +00008 // CHECK-CC1: f(<#float x#>, <#float y, ...#>)