// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=A | %FileCheck %s -check-prefix=A

// Make sure we can code complete at EOF.
// Don't add any tests at the end of the file!
//
// A-DAG: Decl[FreeFunction]/CurrModule/Flair[ArgLabels]: ['(']{#(x): Int#}[')'][#Void#]{{; name=.+$}}
func f(_ x: Int) {}
f(#^A^#
