brintos

brintos / llvm-project-archived public Read only

0
0
Text · 547 B · 30ac7e3 Raw
16 lines · cpp
1// RUN: %clang_cc1 -std=c++20 -triple x86_64-pc-linux %s -ast-dump | FileCheck %s2// RUN: %clang_cc1 -std=c++20 -triple x86_64-pc-win32 %s -ast-dump | FileCheck %s3 4template<class X>5struct DefaultConstructibleWithTemplate {6    template<class T = int>7    DefaultConstructibleWithTemplate();8};9 10void f() {11    DefaultConstructibleWithTemplate<int> x;12}13 14// CHECK: | `-ClassTemplateSpecializationDecl {{.*}} struct DefaultConstructibleWithTemplate definition15// CHECK: |   | |-CXXConstructorDecl {{.*}} DefaultConstructibleWithTemplate 'void ()'16