[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git] / llvm / test / tools / llvm-symbolizer / Inputs / symbols.h
blobb097c4d9dc00a73f71b3b4d19a12853106ae7244
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
11 extern "C" {
12 extern int global_01;
13 int func_01();
14 int func_02(int);
17 template<typename T> T func_03(T x) {
18 return x + T(1);