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
4 template<class T
> using X
= T
;
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'