[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git] / llvm / test / tools / llvm-symbolizer / Inputs / fission-ranges.cc
bloba585bf9c00861050497b0d592872421bbe8ae221
1 static inline int inlined_f() {
2 volatile int x = 2;
3 return x;
6 int main() {
7 return inlined_f();
10 // Build instructions:
11 // $ mkdir /tmp/dbginfo
12 // $ cp fission-ranges.cc /tmp/dbginfo/
13 // $ cd /tmp/dbginfo
14 // $ gcc -gsplit-dwarf -O2 -fPIC fission-ranges.cc -c -o obj2.o
15 // $ clang -gsplit-dwarf -O2 -fsanitize=address -fPIC -Dmain=foo fission-ranges.cc -c -o obj1.o
16 // $ gcc obj1.o obj2.o -shared -o <output>
17 // $ objcopy --remove-section=.debug_aranges <output>