[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / decomposition-openmp.cpp
blob28afc398003995780d30f5b1d15a60d095b93432
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 -fopenmp %s
4 // FIXME: OpenMP should support capturing structured bindings
5 auto f() {
6 int i[2] = {};
7 auto [a, b] = i; // expected-note 2{{declared here}}
8 return [=, &a] {
9 // expected-error@-1 {{capturing a structured binding is not yet supported in OpenMP}}
10 return a + b;
11 // expected-error@-1 {{capturing a structured binding is not yet supported in OpenMP}}