diff options
Diffstat (limited to 'lldb/test/Shell/ObjectFile/ELF/Inputs/minidebuginfo-main.c')
-rw-r--r-- | lldb/test/Shell/ObjectFile/ELF/Inputs/minidebuginfo-main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/test/Shell/ObjectFile/ELF/Inputs/minidebuginfo-main.c b/lldb/test/Shell/ObjectFile/ELF/Inputs/minidebuginfo-main.c new file mode 100644 index 00000000000..8f11dafece6 --- /dev/null +++ b/lldb/test/Shell/ObjectFile/ELF/Inputs/minidebuginfo-main.c @@ -0,0 +1,12 @@ +// This function will be embedded within the .symtab section of the +// .gnu_debugdata section. +int multiplyByFour(int num) { return num * 4; } + +// This function will be embedded within the .dynsym section of the main binary. +int multiplyByThree(int num) { return num * 3; } + +int main(int argc, char *argv[]) { + int x = multiplyByThree(argc); + int y = multiplyByFour(x); + return y; +} |