xref: /llvm-project/llvm/test/tools/llvm-symbolizer/Inputs/symbols.h (revision e144ae54dcb96838a6176fd9eef21028935ccd4f)
1 // This file is a part of sources used to build `symbols.so`, which is used to
2 // test symbol location search made by llvm-symbolizer.
3 //
4 // Build instructions:
5 // $ mkdir /tmp/dbginfo
6 // $ cp symbols.h symbols.part1.cpp symbols.part2.cpp symbols.part3.c symbols.part4.c /tmp/dbginfo/
7 // $ cd /tmp/dbginfo
8 // $ gcc -osymbols.so -shared -fPIC -g symbols.part1.cpp symbols.part2.cpp symbols.part3.c symbols.part4.c
9 
10 
11 extern "C" {
12 extern int global_01;
13 int func_01();
14 int func_02(int);
15 }
16 
func_03(T x)17 template<typename T> T func_03(T x) {
18   return x + T(1);
19 }
20