xref: /llvm-project/lldb/test/Shell/ObjectFile/ELF/Inputs/minidebuginfo-main.c (revision 87aa9c9e4d41ed881453e2fab85b3d25f648bb55)
1*87aa9c9eSJonas Devlieghere // This function will be embedded within the .symtab section of the
2*87aa9c9eSJonas Devlieghere // .gnu_debugdata section.
multiplyByFour(int num)3*87aa9c9eSJonas Devlieghere int multiplyByFour(int num) { return num * 4; }
4*87aa9c9eSJonas Devlieghere 
5*87aa9c9eSJonas Devlieghere // This function will be embedded within the .dynsym section of the main binary.
multiplyByThree(int num)6*87aa9c9eSJonas Devlieghere int multiplyByThree(int num) { return num * 3; }
7*87aa9c9eSJonas Devlieghere 
main(int argc,char * argv[])8*87aa9c9eSJonas Devlieghere int main(int argc, char *argv[]) {
9*87aa9c9eSJonas Devlieghere   int x = multiplyByThree(argc);
10*87aa9c9eSJonas Devlieghere   int y = multiplyByFour(x);
11*87aa9c9eSJonas Devlieghere   return y;
12*87aa9c9eSJonas Devlieghere }
13