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
58 lines
2.2 KiB
C++
58 lines
2.2 KiB
C++
// RUN: %clang_cc1 -std=c++26 -ast-dump -ast-dump-filter=Test %s | FileCheck %s
|
|
|
|
template <template <class> class TT> using N = TT<int>;
|
|
|
|
namespace qualified {
|
|
namespace foo {
|
|
template <class T> struct A;
|
|
} // namespace foo
|
|
using TestQualified = N<foo::A>;
|
|
} // namespace qualified
|
|
|
|
// CHECK: Dumping qualified::TestQualified:
|
|
// CHECK-NEXT: TypeAliasDecl
|
|
// CHECK-NEXT: `-TemplateSpecializationType
|
|
// CHECK-NEXT: |-name: 'N' qualified
|
|
// CHECK-NEXT: | `-TypeAliasTemplateDecl {{.+}} N external-linkage{{$}}
|
|
// CHECK-NEXT: |-TemplateArgument template 'foo::A':'qualified::foo::A' qualified{{$}}
|
|
// CHECK-NEXT: | |-NestedNameSpecifier Namespace 0x{{.+}} 'foo'{{$}}
|
|
// CHECK-NEXT: | `-ClassTemplateDecl {{.+}} A external-linkage{{$}}
|
|
|
|
namespace dependent {
|
|
template <class T> struct B {
|
|
using TestDependent = N<T::template X>;
|
|
};
|
|
} // namespace dependent
|
|
|
|
// CHECK: Dumping dependent::B::TestDependent:
|
|
// CHECK-NEXT: TypeAliasDecl
|
|
// CHECK-NEXT: `-TemplateSpecializationType
|
|
// CHECK-NEXT: |-name: 'N' qualified
|
|
// CHECK-NEXT: | `-TypeAliasTemplateDecl
|
|
// CHECK-NEXT: |-TemplateArgument template 'T::template X':'type-parameter-0-0::template X' dependent{{$}}
|
|
// CHECK-NEXT: | `-NestedNameSpecifier TypeSpec 'T'{{$}}
|
|
|
|
namespace subst {
|
|
template <class> struct A;
|
|
|
|
template <template <class> class TT> struct B {
|
|
template <template <class> class> struct C {};
|
|
using type = C<TT>;
|
|
};
|
|
using TestSubst = B<A>::type;
|
|
} // namespace subst
|
|
|
|
// CHECK: Dumping subst::TestSubst:
|
|
// CHECK-NEXT: TypeAliasDecl
|
|
// CHECK-NEXT: `-TypedefType
|
|
// CHECK-NEXT: |-NestedNameSpecifier TypeSpec 'B<A>':'subst::B<subst::A>'
|
|
// CHECK-NEXT: |-TypeAlias
|
|
// CHECK-NEXT: `-TemplateSpecializationType
|
|
// CHECK-NEXT: |-name: 'C':'subst::B<subst::A>::C' qualified
|
|
// CHECK-NEXT: | `-ClassTemplateDecl {{.+}} C
|
|
// CHECK-NEXT: |-TemplateArgument template 'subst::A' subst index 0
|
|
// CHECK-NEXT: | |-parameter: TemplateTemplateParmDecl {{.+}} depth 0 index 0 TT{{$}}
|
|
// CHECK-NEXT: | |-associated ClassTemplateSpecialization {{.+}} 'B'{{$}}
|
|
// CHECK-NEXT: | `-replacement:
|
|
// CHECK-NEXT: | `-ClassTemplateDecl {{.+}} A external-linkage{{$}}
|