summaryrefslogtreecommitdiff
path: root/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test.cc
blob: ea0967a263a8c7ade2c7e30e0d42d2427afeefe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int f(int a, int b) {
  return a + b;
}

int g(int a) {
  return a + 1;
}


int main() {
  return f(2, g(2));
}

// Built with Clang 3.5.0:
// $ mkdir -p /tmp/dbginfo
// $ cp llvm-symbolizer-dwo-test.cc /tmp/dbginfo
// $ cd /tmp/dbginfo
// $ clang -gsplit-dwarf llvm-symbolizer-dwo-test.cc