[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / APINotes / templates.cpp
blob0556eba925a5149b74d8516cfb59c0fef3528428
1 // RUN: rm -rf %t && mkdir -p %t
2 // RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Tmpl -fdisable-module-hash -fapinotes-modules -fsyntax-only -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -x c++
3 // RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Tmpl -fdisable-module-hash -fapinotes-modules -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -ast-dump -ast-dump-filter Box -x c++ | FileCheck -check-prefix=CHECK-BOX %s
5 #include "Templates.h"
7 // CHECK-BOX: Dumping Box:
8 // CHECK-BOX-NEXT: ClassTemplateDecl {{.+}} imported in Templates Box
9 // CHECK-BOX: SwiftAttrAttr {{.+}} <<invalid sloc>> "import_owned"