blob: b41423dd81597c48f98bd1537eac2266359a7c8e [file] [log] [blame]
David Blaikie9a4f3cb2016-04-22 21:32:59 +00001void f1() {
Alexey Samsonovd3e12132014-09-05 19:29:45 +00002}
3
David Blaikie9a4f3cb2016-04-22 21:32:59 +00004inline __attribute__((always_inline)) void f2() {
5 f1();
6}
7
8int main() {
9 f2();
Alexey Samsonovd3e12132014-09-05 19:29:45 +000010}
11
12// Build instructions:
David Blaikie9a4f3cb2016-04-22 21:32:59 +000013// 1) clang++ -### -gsplit-dwarf split-dwarf-test.cc -o split-dwarf-test
Alexey Samsonovd3e12132014-09-05 19:29:45 +000014// 2) Replace the value "-fdebug-compilation-dir" flag to "Output"
15// (this is the temp directory used by lit).
16// 3) Manually run clang-cc1, objcopy and ld invocations.
17// 4) Copy the binary and .dwo file to the Inputs directory. Make sure the
18// .dwo file will be available for symbolizer (use test RUN-lines to copy
19// the .dwo file to a directory
20// <execution_directory>/<directory_provided_in_fdebug_compilation_dir>.