mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
51f6ba0998
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175168 91177308-0d34-0410-b5e6-96231b3b80d8
33 lines
618 B
C++
33 lines
618 B
C++
// 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;
|
|
}
|