xref: /llvm-project/clang/test/CodeCompletion/crash-null-type.cpp (revision cf9b25e0adc42546e4dc5ff51ee8674d45bac26b)

test()1 void test() {
2   for (auto [loopVar] : y) { // y has to be unresolved
3     loopVa
4   }
5 }
6 // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-3):11 %s -o - \
7 // RUN:            | FileCheck %s
8 // CHECK: COMPLETION: loopVar
9