xref: /llvm-project/clang/test/AST/conditionally-trivial-smfs-2.cpp (revision b1c960fc6dc2891c8d2ca09c184572ca0857ba15)
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
3 
4 template<class X>
5 struct DefaultConstructibleWithTemplate {
6     template<class T = int>
7     DefaultConstructibleWithTemplate();
8 };
9 
f()10 void f() {
11     DefaultConstructibleWithTemplate<int> x;
12 }
13 
14 // CHECK: | `-ClassTemplateSpecializationDecl {{.*}} struct DefaultConstructibleWithTemplate definition
15 // CHECK: |   | |-CXXConstructorDecl {{.*}} DefaultConstructibleWithTemplate 'void ()'
16