dwarfdump: Added macro support to llvm-dwarfdump tool.
[oota-llvm.git] / test / DebugInfo / Inputs / dwarfdump-test-zlib.cc
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 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>