mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 18:56:06 +00:00
19 lines
627 B
C++
19 lines
627 B
C++
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump %s | FileCheck -strict-whitespace %s
|
|
|
|
namespace a {
|
|
struct S;
|
|
}
|
|
namespace b {
|
|
using a::S;
|
|
// CHECK: UsingDecl {{.*}} a::S
|
|
// CHECK-NEXT: | `-NestedNameSpecifier NamespaceNamespace {{.*}} 'a'
|
|
// CHECK-NEXT: UsingShadowDecl {{.*}} implicit CXXRecord {{.*}} 'S'
|
|
// CHECK-NEXT: `-RecordType {{.*}} 'a::S'
|
|
typedef S f; // to dump the introduced type
|
|
// CHECK: TypedefDecl
|
|
// CHECK-NEXT: `-ElaboratedType {{.*}} 'S' sugar
|
|
// CHECK-NEXT: `-UsingType {{.*}} 'a::S' sugar
|
|
// CHECK-NEXT: |-UsingShadow {{.*}} 'S'
|
|
// CHECK-NEXT: `-RecordType {{.*}} 'a::S'
|
|
}
|