diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-02-07 01:35:44 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-02-07 01:35:44 +0000 |
commit | f5f43546b3d63380bbb5fda4e4b012a0cf9c0a34 (patch) | |
tree | 8d1adf5d8542ea3cdba2cf9fd509253fa25d23f6 /clang/test | |
parent | 10f2055812816fa1d295fa36df57826e1f14a7cd (diff) | |
download | bcm5719-llvm-f5f43546b3d63380bbb5fda4e4b012a0cf9c0a34.tar.gz bcm5719-llvm-f5f43546b3d63380bbb5fda4e4b012a0cf9c0a34.zip |
AST dumping: indicate the previous declaration for a redeclaration, and
indicate the semantic DC if it's not the lexical DC. In passing, correct
the ascii-art child marker for a child of a FriendDecl.
llvm-svn: 174570
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Misc/ast-dump-decl.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Misc/ast-dump-decl.cpp b/clang/test/Misc/ast-dump-decl.cpp index ab847cac6f3..d8072b727ab 100644 --- a/clang/test/Misc/ast-dump-decl.cpp +++ b/clang/test/Misc/ast-dump-decl.cpp @@ -403,3 +403,16 @@ namespace TestFileScopeAsmDecl { // CHECK: NamespaceDecl{{.*}} TestFileScopeAsmDecl{{$}} // CHECK: FileScopeAsmDecl{{.*>$}} // CHECK-NEXT: StringLiteral + +namespace TestFriendDecl2 { + void f(); + struct S { + friend void f(); + }; +} +// CHECK: NamespaceDecl [[TestFriendDecl2:0x.*]] <{{.*}}> TestFriendDecl2 +// CHECK: |-FunctionDecl [[TestFriendDecl2_f:0x.*]] <{{.*}}> f 'void (void)' +// CHECK: `-CXXRecordDecl {{.*}} struct S +// CHECK: |-CXXRecordDecl {{.*}} struct S +// CHECK: `-FriendDecl +// CHECK: `-FunctionDecl {{.*}} parent [[TestFriendDecl2]] prev [[TestFriendDecl2_f]] <{{.*}}> f 'void (void)' |