[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / AST / ast-dump-retain-subst-template-type-parm-type-ast-nodes.cpp
blob97dc983e2436cbad54c3e5490ea84525b8da605b
1 // RUN: %clang_cc1 -fsyntax-only -fretain-subst-template-type-parm-type-ast-nodes -ast-dump -ast-dump-filter=dump %s | FileCheck -strict-whitespace %s
3 namespace t1 {
4 template<class T> using X = T;
5 using dump = X<int>;
7 // CHECK-LABEL: Dumping t1::dump:
8 // CHECK-NEXT: TypeAliasDecl
9 // CHECK-NEXT: `-ElaboratedType
10 // CHECK-NEXT: `-TemplateSpecializationType
11 // CHECK-NEXT: |-name: 'X':'t1::X' qualified
12 // CHECK-NEXT: | `-TypeAliasTemplateDecl
13 // CHECK-NEXT: |-TemplateArgument
14 // CHECK-NEXT: | `-BuiltinType {{.+}} 'int'
15 // CHECK-NEXT: `-SubstTemplateTypeParmType 0x{{[0-9a-f]+}} 'int' sugar class depth 0 index 0 T
16 // CHECK-NEXT: |-TypeAliasTemplate {{.+}} 'X'
17 // CHECK-NEXT: `-BuiltinType {{.+}} 'int'
18 } // namespace t1