diff options
author | Eli Bendersky <eliben@google.com> | 2013-02-06 20:55:06 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-02-06 20:55:06 +0000 |
commit | 62b055fd5060a865e106c319b75884237a3999b3 (patch) | |
tree | fbe28a6a81d59bd2723819d964fbc89109ae50f8 /test/DebugInfo/Inputs/dwarfdump-test-32bit.elf.c | |
parent | 16221a60a00e52b078f6164ba4475c6e8e918e4b (diff) | |
download | llvm-62b055fd5060a865e106c319b75884237a3999b3.tar.gz llvm-62b055fd5060a865e106c319b75884237a3999b3.tar.bz2 llvm-62b055fd5060a865e106c319b75884237a3999b3.tar.xz |
Add a test for checking the current .debug_frame dumping capability.
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
Diffstat (limited to 'test/DebugInfo/Inputs/dwarfdump-test-32bit.elf.c')
-rw-r--r-- | test/DebugInfo/Inputs/dwarfdump-test-32bit.elf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/DebugInfo/Inputs/dwarfdump-test-32bit.elf.c b/test/DebugInfo/Inputs/dwarfdump-test-32bit.elf.c new file mode 100644 index 0000000000..708e037f4e --- /dev/null +++ b/test/DebugInfo/Inputs/dwarfdump-test-32bit.elf.c @@ -0,0 +1,14 @@ +// 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); +} + |