f1()1*79c3d8b1SDavid Blaikievoid f1() { 2*79c3d8b1SDavid Blaikie } 3*79c3d8b1SDavid Blaikie f2()4*79c3d8b1SDavid Blaikieinline __attribute__((always_inline)) void f2() { 5*79c3d8b1SDavid Blaikie f1(); 6*79c3d8b1SDavid Blaikie } 7*79c3d8b1SDavid Blaikie main()8*79c3d8b1SDavid Blaikieint main() { 9*79c3d8b1SDavid Blaikie f2(); 10*79c3d8b1SDavid Blaikie } 11*79c3d8b1SDavid Blaikie 12*79c3d8b1SDavid Blaikie // Build instructions: 13*79c3d8b1SDavid Blaikie // 1) clang++ -### -gsplit-dwarf split-dwarf-test.cc -o split-dwarf-test 14*79c3d8b1SDavid Blaikie // 2) Replace the value "-fdebug-compilation-dir" flag to "Output" 15*79c3d8b1SDavid Blaikie // (this is the temp directory used by lit). 16*79c3d8b1SDavid Blaikie // 3) Manually run clang-cc1, objcopy and ld invocations. 17*79c3d8b1SDavid Blaikie // 4) Copy the binary and .dwo file to the Inputs directory. Make sure the 18*79c3d8b1SDavid Blaikie // .dwo file will be available for symbolizer (use test RUN-lines to copy 19*79c3d8b1SDavid Blaikie // the .dwo file to a directory 20*79c3d8b1SDavid Blaikie // <execution_directory>/<directory_provided_in_fdebug_compilation_dir>. 21