mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
62b055fd50
The test is a binary placed in test/DebugInfo/Inputs, with a source C file used for reference/reproducing. The source's first line is a clang build command for reproducing the binary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174543 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
237 B
C
15 lines
237 B
C
// clang -c -g -o dwarfdump-test-32bit.elf.o -m32 dwarfdump-test-32bit.elf.c
|
|
|
|
extern int glob;
|
|
|
|
int foo(int arg) {
|
|
int a = arg * 2;
|
|
return a + glob;
|
|
}
|
|
|
|
int bar(int arg) {
|
|
int a = foo(arg) * foo(arg * 2);
|
|
return glob - foo(a);
|
|
}
|
|
|