diff options
Diffstat (limited to 'clang/test/CodeCompletion/crash-func-decl.cpp')
-rw-r--r-- | clang/test/CodeCompletion/crash-func-decl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/crash-func-decl.cpp b/clang/test/CodeCompletion/crash-func-decl.cpp new file mode 100644 index 00000000000..7abcdcdb271 --- /dev/null +++ b/clang/test/CodeCompletion/crash-func-decl.cpp @@ -0,0 +1,5 @@ +// 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:3:12 %s | FileCheck %s +// CHECK: COMPLETION: char |