dwarfdump-pubnames.cc revision 51f6ba0998cf5f9c9389e63fba0b58882a4ed0c5
1// Object file built using: 2// clang -g -mllvm -generate-dwarf-pubnames -o dwarfdump-pubnames.elf-x86_64 \ 3// dwarfdump-pubnames.cc -c 4 5struct C { 6 void member_function(); 7 static int static_member_function(); 8 static int static_member_variable; 9}; 10 11int C::static_member_variable = 0; 12 13void C::member_function() { 14 static_member_variable = 0; 15} 16 17int C::static_member_function() { 18 return static_member_variable; 19} 20 21C global_variable; 22 23int global_function() { 24 return -1; 25} 26 27namespace ns { 28 void global_namespace_function() { 29 global_variable.member_function(); 30 } 31 int global_namespace_variable = 1; 32} 33