brintos

brintos / llvm-project-archived public Read only

0
0
Text · 545 B · b097c4d Raw
20 lines · c
1// This file is a part of sources used to build `symbols.so`, which is used to2// test symbol location search made by llvm-symbolizer.3//4// Build instructions:5// $ mkdir /tmp/dbginfo6// $ cp symbols.h symbols.part1.cpp symbols.part2.cpp symbols.part3.c symbols.part4.c /tmp/dbginfo/7// $ cd /tmp/dbginfo8// $ gcc -osymbols.so -shared -fPIC -g symbols.part1.cpp symbols.part2.cpp symbols.part3.c symbols.part4.c9 10 11extern "C" {12extern int global_01;13int func_01();14int func_02(int);15}16 17template<typename T> T func_03(T x) {18  return x + T(1);19}20