diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2013-02-14 16:10:58 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2013-02-14 16:10:58 +0000 |
commit | 51f6ba0998cf5f9c9389e63fba0b58882a4ed0c5 (patch) | |
tree | d0305806be6e2ec18b118b733e2476f634a61101 /test/DebugInfo/Inputs | |
parent | 579ad50f511d663f3d2797af2ad8c7218ee89606 (diff) | |
download | llvm-51f6ba0998cf5f9c9389e63fba0b58882a4ed0c5.tar.gz llvm-51f6ba0998cf5f9c9389e63fba0b58882a4ed0c5.tar.bz2 llvm-51f6ba0998cf5f9c9389e63fba0b58882a4ed0c5.tar.xz |
Add testcase for llvm-dwarfdump to test parsing of the pubnames data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/Inputs')
-rw-r--r-- | test/DebugInfo/Inputs/dwarfdump-pubnames.cc | 32 | ||||
-rw-r--r-- | test/DebugInfo/Inputs/dwarfdump-pubnames.elf-x86-64 | bin | 0 -> 5280 bytes |
2 files changed, 32 insertions, 0 deletions
diff --git a/test/DebugInfo/Inputs/dwarfdump-pubnames.cc b/test/DebugInfo/Inputs/dwarfdump-pubnames.cc new file mode 100644 index 0000000000..284755bd94 --- /dev/null +++ b/test/DebugInfo/Inputs/dwarfdump-pubnames.cc @@ -0,0 +1,32 @@ +// Object file built using: +// clang -g -mllvm -generate-dwarf-pubnames -o dwarfdump-pubnames.elf-x86_64 \ +// dwarfdump-pubnames.cc -c + +struct C { + void member_function(); + static int static_member_function(); + static int static_member_variable; +}; + +int C::static_member_variable = 0; + +void C::member_function() { + static_member_variable = 0; +} + +int C::static_member_function() { + return static_member_variable; +} + +C global_variable; + +int global_function() { + return -1; +} + +namespace ns { + void global_namespace_function() { + global_variable.member_function(); + } + int global_namespace_variable = 1; +} diff --git a/test/DebugInfo/Inputs/dwarfdump-pubnames.elf-x86-64 b/test/DebugInfo/Inputs/dwarfdump-pubnames.elf-x86-64 Binary files differnew file mode 100644 index 0000000000..3c9c1ad56b --- /dev/null +++ b/test/DebugInfo/Inputs/dwarfdump-pubnames.elf-x86-64 |