1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump %s | FileCheck -strict-whitespace %s 2 3 namespace a { 4 struct S; 5 } 6 namespace b { 7 using a::S; 8 // CHECK: UsingDecl {{.*}} a::S 9 // CHECK-NEXT: UsingShadowDecl {{.*}} implicit CXXRecord {{.*}} 'S' 10 // CHECK-NEXT: `-RecordType {{.*}} 'a::S' 11 typedef S f; // to dump the introduced type 12 // CHECK: TypedefDecl 13 // CHECK-NEXT: `-UsingType {{.*}} 'a::S' sugar 14 // CHECK-NEXT: |-UsingShadow {{.*}} 'S' 15 // CHECK-NEXT: `-RecordType {{.*}} 'a::S' 16 } 17