1class DummyClass { 2 int a_; 3 public: 4 DummyClass(int a) : a_(a) {} 5 int add(int b) { 6 return a_ + b; 7 } 8}; 9 10int f(int a, int b) { 11 DummyClass c(a); 12 return c.add(b); 13} 14 15int main() { 16 return f(2, 3); 17} 18 19// Built with Clang 3.2 and ld.gold linker: 20// $ mkdir -p /tmp/dbginfo 21// $ cp dwarfdump-test-zlib.cc /tmp/dbginfo 22// $ cd /tmp/dbginfo 23// $ clang++ -g dwarfdump-test-zlib.cc -Wl,--compress-debug-sections=zlib \ 24// -o <output> 25