================
@@ -24,6 +24,14 @@
 // RUN: cd %t.relpath && %clang_cl --target=i686-windows-msvc /c /Z7 
/Fo:hello.obj -- hello.cpp
 // RUN: llvm-pdbutil dump --types %t.relpath/hello.obj | FileCheck %s 
--check-prefix RELPATH
 
+// The S_OBJNAME path must be get remapped if a proper prefix map was 
specified via `/pathmap`.
+// RUN: rm -rf %t.pathmap && mkdir -p %t.pathmap
+// RUN: cp %s %t.pathmap/%{s:basename}
+// RUN: cd %t.pathmap && %clang_cl --target=i686-windows-msvc /c /Z7 \
+// RUN:   /pathmap:%t.pathmap=x:/path-to /experimental:deterministic \
+// RUN:   /Fo:%{s:basename}.obj -- %{s:basename}
+// RUN: llvm-pdbutil dump --all %{s:basename}.obj | FileCheck %s 
--check-prefix OBJNAME-PATHMAP
----------------
aganea wrote:

I suppose you could use `dump --symbols` to reduce the scope to just what 
you're testing for.

https://github.com/llvm/llvm-project/pull/205729
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to