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