diff options
Diffstat (limited to 'test/CodeCompletion/crash-null-type.cpp')
-rw-r--r-- | test/CodeCompletion/crash-null-type.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeCompletion/crash-null-type.cpp b/test/CodeCompletion/crash-null-type.cpp new file mode 100644 index 0000000000..c5b3d1e793 --- /dev/null +++ b/test/CodeCompletion/crash-null-type.cpp @@ -0,0 +1,8 @@ +void test() { + for (auto [loopVar] : y) { // y has to be unresolved + loopVa + } +} +// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:3:11 %s -o - \ +// RUN: | FileCheck %s +// CHECK: COMPLETION: loopVar |