aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/conditionally-trivial-smfs-2.cpp
blob: 30ac7e33a803e5f8262f9ab5716bf9746a3d2a67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -std=c++20 -triple x86_64-pc-linux %s -ast-dump | FileCheck %s
// RUN: %clang_cc1 -std=c++20 -triple x86_64-pc-win32 %s -ast-dump | FileCheck %s

template<class X>
struct DefaultConstructibleWithTemplate {
    template<class T = int>
    DefaultConstructibleWithTemplate();
};

void f() {
    DefaultConstructibleWithTemplate<int> x;
}

// CHECK: | `-ClassTemplateSpecializationDecl {{.*}} struct DefaultConstructibleWithTemplate definition
// CHECK: |   | |-CXXConstructorDecl {{.*}} DefaultConstructibleWithTemplate 'void ()'