[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / cxx17.cpp
blob87039ef76656000d3540877ae486dd681db310b9
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -x c++ -std=c++1z -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/cxx17 %s -verify -fno-modules-error-recovery
4 // expected-no-diagnostics
5 struct MergeExceptionSpec {
6 ~MergeExceptionSpec();
7 } mergeExceptionSpec; // trigger evaluation of exception spec
9 #include "decls.h"
11 MergeExceptionSpec mergeExceptionSpec2;
13 template<typename T> struct DeductionGuide {};
14 DeductionGuide() -> DeductionGuide<int>;
15 DeductionGuide a;