summaryrefslogtreecommitdiff
path: root/clang/test/CodeCompletion/crash-null-type.cpp
blob: e93f77f5eb55b0b220452fafa8cfc02abe304fb2 (plain)
1
2
3
4
5
6
7
8
void test() {
  for (auto [loopVar] : y) { // y has to be unresolved
    loopVa
  }
}
// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-3):11 %s -o - \
// RUN:            | FileCheck %s
// CHECK: COMPLETION: loopVar