1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 -fopenmp %s
3 // Okay, not an OpenMP capture.
12 // Okay, not an OpenMP capture.
19 auto L
= [&] { foo(a
+b
); };
23 // FIXME: OpenMP should support capturing structured bindings
26 auto [a
, b
] = i
; // expected-note 2{{declared here}}
29 // expected-error@+1 2{{capturing a structured binding is not yet supported in OpenMP}}