| 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 |
|
| 10 |
void f() { |
| 11 |
DefaultConstructibleWithTemplate<int> x; |
| 12 |
} |
| 13 |
|
| 14 |
// CHECK: | `-ClassTemplateSpecializationDecl {{.*}} struct DefaultConstructibleWithTemplate definition |
| 15 |
// CHECK: | | |-CXXConstructorDecl {{.*}} DefaultConstructibleWithTemplate 'void ()' |