llvm/bolt/test/X86/dwarf5-override-comp-dir.test

; REQUIRES: system-linux

; RUN: rm -rf %t
; RUN: mkdir %t
; RUN: cd %t
; RUN: mkdir temp
; RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-input-lowpc-ranges-main.s \
; RUN: -split-dwarf-file=main.dwo -o main.o
; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o -o main.exe
; RUN: cd temp
; RUN: llvm-bolt ../main.exe -o ../main.exe.bolt --update-debug-sections -v 1 --comp-dir-override=%t
; RUN: cd ..
; RUN: ls -lat | FileCheck %s -check-prefix=BOLT-CHECK

;; Tests that BOLT processes .dwo files with --comp-dir-override.

; BOLT-CHECK: main.dwo.dwo