summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/ObjectFile/ELF/Inputs/minidebuginfo-main.c
blob: 8f11dafece689f0daca212e919b76835b28aec92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// This function will be embedded within the .symtab section of the
// .gnu_debugdata section.
int multiplyByFour(int num) { return num * 4; }

// This function will be embedded within the .dynsym section of the main binary.
int multiplyByThree(int num) { return num * 3; }

int main(int argc, char *argv[]) {
  int x = multiplyByThree(argc);
  int y = multiplyByFour(x);
  return y;
}
OpenPOWER on IntegriCloud