[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / cxx20.cpp
blobe85bc9ad8a8fc0062d1e71be1148b67fea44bf64
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -x c++ -std=c++20 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/cxx20 %s -verify -fno-modules-error-recovery
4 // expected-no-diagnostics
6 #include "decls.h"
8 namespace StructuredBinding {
9 struct R { int x, y; };
10 static auto [a, b] = R();