1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump %s | FileCheck -strict-whitespace %s
5 template <typename T
> T x
= {};
9 // CHECK: UsingDecl {{.*}} a::S
10 // CHECK-NEXT: | `-NestedNameSpecifier Namespace {{.*}} 'a'
11 // CHECK-NEXT: UsingShadowDecl {{.*}} implicit CXXRecord {{.*}} 'S'
12 // CHECK-NEXT: `-RecordType {{.*}} 'a::S'
13 typedef S f
; // to dump the introduced type
15 // CHECK-NEXT: `-ElaboratedType {{.*}} 'S' sugar
16 // CHECK-NEXT: `-UsingType [[TYPE_ADDR:.*]] 'a::S' sugar
17 // CHECK-NEXT: |-UsingShadow [[SHADOW_ADDR:.*]] 'S'
18 // CHECK-NEXT: `-RecordType {{.*}} 'a::S'
19 typedef S e
; // check the same UsingType is reused.
21 // CHECK-NEXT: `-ElaboratedType {{.*}} 'S' sugar
22 // CHECK-NEXT: `-UsingType [[TYPE_ADDR]] 'a::S' sugar
23 // CHECK-NEXT: |-UsingShadow [[SHADOW_ADDR]] 'S'
24 // CHECK-NEXT: `-RecordType {{.*}} 'a::S'
29 // CHECK: DeclRefExpr {{.*}} 'x' {{.*}} (UsingShadow {{.*}} 'x')