llvm-6502/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.cpp
David Blaikie 3df7d2f70b llvm-dwarfdump: Add support for dumping the .debug_loc section
This is a basic implementation - we still don't have any support (that I
know of) for dumping DWARF expressions in a meaningful way, so the
location information itself is just printed as a sequence of bytes as we
do elsewhere.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184361 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-19 21:37:13 +00:00

14 lines
226 B
C++

// clang -c -g -o dwarfdump-test-loc-list-32bit.elf.o -m32 dwarfdump-test-loc-list-32bit.elf.cpp
namespace pr14763 {
struct foo {
foo(const foo&);
};
foo func(bool b, foo f, foo g) {
if (b)
return f;
return g;
}
}