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