summaryrefslogtreecommitdiff
path: root/test/DebugInfo/Inputs/llvm-symbolizer-test.c
blob: 4c40c00c67360e1dfd7541ef6324def25c18c8e0 (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.3:
// $ mkdir -p /tmp/dbginfo
// $ cp llvm-symbolizer-test.c /tmp/dbginfo
// $ cd /tmp/dbginfo
// $ clang -g llvm-symbolizer-test.c -o <output>