llvm/clang/test/CodeCompletion/crash-func-decl.cpp

// Important that BB is unknown.
// This triggers completion in PCC_RecoveryInFunction context, with no function.
int AA(BB cc);
// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):12 %s | FileCheck %s
// CHECK: COMPLETION: char