xref: /llvm-project/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix-windows.test (revision 8b4a7272810178a91f128f32b9f8ccb97bcf11b9)
1;; Test --prefix option platform specific behavior.
2; REQUIRES: system-windows
3
4;; Test removal of trailing separators (both '/' and '\' on Windows systems).
5;; The prefix 'myprefix/\' is changed to 'myprefix'.
6
7; RUN: sed -e "s,SRC_COMPDIR,/Inputs,g" %p/Inputs/source-interleave.ll > %t.ll
8; RUN: llc -o %t.o -filetype=obj -mtriple=x86_64-pc-linux %t.ll
9; RUN: llvm-objdump --prefix 'myprefix/\' --source %t.o 2>&1 | FileCheck %s -DFILE=%t.o -DPREFIX='myprefix'
10; CHECK: warning: '[[FILE]]': failed to find source [[PREFIX]]/Inputs\source-interleave-x86_64.c
11
12