xref: /llvm-project/llvm/test/tools/llvm-dwp/X86/search_dwos.test (revision 4531f5385125dd6448004a16cd80a94484ca68b7)
1RUN: rm -rf %t
2RUN: mkdir %t
3RUN: cd %t
4RUN: cp %p/../Inputs/search_dwos/a.dwo a.dwo
5RUN: cp %p/../Inputs/search_dwos/b.dwo b.dwo
6RUN: cp %p/../Inputs/search_dwos/main main
7RUN: llvm-dwp -e main -o %t.dwp
8
9Search the DWO from relative path if absolute path is not valid.
10Build commands for the test binaries:
11
12clang++ -Xclang -fdebug-compilation-dir -Xclang "path-not-exists" -g -O0 -gsplit-dwarf a.cpp b.cpp -o main
13
14sources:
15a.cpp:
16  void a() {}
17
18b.cpp:
19  void b() {}
20  int main() {
21     return 0;
22  }
23