[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / AST / conditionally-trivial-smfs-2.cpp
blob30ac7e33a803e5f8262f9ab5716bf9746a3d2a67
1 // RUN: %clang_cc1 -std=c++20 -triple x86_64-pc-linux %s -ast-dump | FileCheck %s
2 // RUN: %clang_cc1 -std=c++20 -triple x86_64-pc-win32 %s -ast-dump | FileCheck %s
4 template<class X>
5 struct DefaultConstructibleWithTemplate {
6 template<class T = int>
7 DefaultConstructibleWithTemplate();
8 };
10 void f() {
11 DefaultConstructibleWithTemplate<int> x;
14 // CHECK: | `-ClassTemplateSpecializationDecl {{.*}} struct DefaultConstructibleWithTemplate definition
15 // CHECK: | | |-CXXConstructorDecl {{.*}} DefaultConstructibleWithTemplate 'void ()'