[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / DebugInfo / Inputs / dwarfdump-test-zlib.cc
blob714673f2e2313fbae065ba4fe2b8b43776acbe8f
1 class DummyClass {
2 int a_;
3 public:
4 DummyClass(int a) : a_(a) {}
5 int add(int b) {
6 return a_ + b;
8 };
10 int f(int a, int b) {
11 DummyClass c(a);
12 return c.add(b);
15 int main() {
16 return f(2, 3);
19 // Built with Clang 3.9 and GNU gold (GNU Binutils for Ubuntu 2.26) 1.11:
20 // Note: llvm-symbolizer-zlib.test relies on the path and filename used !
21 // $ mkdir -p /tmp/dbginfo
22 // $ cp dwarfdump-test-zlib.cc /tmp/dbginfo
23 // $ cd /tmp/dbginfo
24 // $ clang++ -g dwarfdump-test-zlib.cc -Wl,--compress-debug-sections=zlib -o dwarfdump-test-zlib.elf-x86-64
25 // $ clang++ -g dwarfdump-test-zlib.cc -Wa,--compress-debug-sections=zlib -c -o dwarfdump-test-zlib.o.elf-x86-64
26 // $ clang++ -g dwarfdump-test-zlib.cc -Wl,--compress-debug-sections=zlib-gnu -o dwarfdump-test-zlibgnu.elf-x86-64
27 // llvm-readobj --sections can be used to see that outputs really contain the compressed sections, also output in both
28 // cases is slightly smaller, that is because of compression.