Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / AST / ast-dump-using.cpp
blobc007ecd8bda58390f38bf1df77e3ceec46108668
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump %s | FileCheck -strict-whitespace %s
3 namespace a {
4 struct S;
6 namespace b {
7 using a::S;
8 // CHECK: UsingDecl {{.*}} a::S
9 // CHECK-NEXT: | `-NestedNameSpecifier Namespace {{.*}} 'a'
10 // CHECK-NEXT: UsingShadowDecl {{.*}} implicit CXXRecord {{.*}} 'S'
11 // CHECK-NEXT: `-RecordType {{.*}} 'a::S'
12 typedef S f; // to dump the introduced type
13 // CHECK: TypedefDecl
14 // CHECK-NEXT: `-ElaboratedType {{.*}} 'S' sugar
15 // CHECK-NEXT: `-UsingType {{.*}} 'a::S' sugar
16 // CHECK-NEXT: |-UsingShadow {{.*}} 'S'
17 // CHECK-NEXT: `-RecordType {{.*}} 'a::S'