CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
55 lines
2.1 KiB
C++
55 lines
2.1 KiB
C++
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -std=c++17 -ast-dump %s | FileCheck -strict-whitespace %s
|
|
|
|
// Tests to verify we construct correct using template names.
|
|
// TemplateNames are not dumped, so the sugar here isn't obvious. However
|
|
// the "using" on the TemplateSpecializationTypes shows that the
|
|
// UsingTemplateName is present.
|
|
namespace ns {
|
|
template<typename T> class S {
|
|
public:
|
|
S(T);
|
|
};
|
|
template<typename T> struct S2 { S2(T); };
|
|
template <typename T> S2(T t) -> S2<T>;
|
|
}
|
|
using ns::S;
|
|
using ns::S2;
|
|
|
|
// TemplateName in TemplateSpecializationType.
|
|
template<typename T>
|
|
using A = S<T>;
|
|
// CHECK: TypeAliasDecl
|
|
// CHECK-NEXT: `-TemplateSpecializationType {{.*}} 'S<T>' dependent
|
|
// CHECK-NEXT: |-name: 'S':'ns::S' qualified
|
|
// CHECk-NEXT: | |-UsingShadowDecl {{.+}} ClassTemplate {{.+}} 'S'
|
|
|
|
// TemplateName in TemplateArgument.
|
|
template <template <typename> class T> class X {};
|
|
using B = X<S>;
|
|
// CHECK: TypeAliasDecl
|
|
// CHECK-NEXT: `-TemplateSpecializationType {{.*}} 'X<S>' sugar
|
|
// CHECK-NEXT: |-name: 'X' qualified
|
|
// CHECK-NEXT: | `-ClassTemplateDecl {{.+}} X
|
|
// CHECK-NEXT: |-TemplateArgument template 'S':'ns::S' qualified
|
|
// CHECK-NEXT: | |-UsingShadowDecl {{.*}} implicit ClassTemplate {{.*}} 'S'
|
|
// CHECK-NEXT: | `-target: ClassTemplateDecl {{.*}} S
|
|
// CHECK-NEXT: `-RecordType {{.*}} 'X<ns::S>'
|
|
// CHECK-NEXT: `-ClassTemplateSpecialization {{.*}} 'X'
|
|
|
|
// TemplateName in DeducedTemplateSpecializationType.
|
|
S DeducedTemplateSpecializationT(123);
|
|
using C = decltype(DeducedTemplateSpecializationT);
|
|
// CHECK: DecltypeType {{.*}}
|
|
// CHECK-NEXT: |-DeclRefExpr {{.*}}
|
|
// CHECK-NEXT: `-DeducedTemplateSpecializationType {{.*}} 'S<int>' sugar
|
|
// CHECK-NEXT: |-name: 'S':'ns::S' qualified
|
|
// CHECK-NEXT: | |-UsingShadowDecl {{.+}} 'S'
|
|
|
|
S2 DeducedTemplateSpecializationT2(123);
|
|
using D = decltype(DeducedTemplateSpecializationT2);
|
|
// CHECK: DecltypeType {{.*}}
|
|
// CHECK-NEXT: |-DeclRefExpr {{.*}}
|
|
// CHECK-NEXT: `-DeducedTemplateSpecializationType {{.*}} 'S2<int>' sugar
|
|
// CHECK-NEXT: |-name: 'S2':'ns::S2' qualified
|
|
// CHECk-NEXT: | |-UsingShadowDecl {{.+}} ClassTemplate {{.+}} 'S2'
|