2 // RUN
: llvm-mc
-triple
=x86_64-linux-unknown
-g
-fdebug-compilation-dir
=/test
/comp
/dir
%s
-filetype
=obj
-o
%t.o
3 // RUN
: llvm-dwarfdump
-v
-debug-info
%t.o | FileCheck
%s
5 // CHECK
: DW_AT_comp_dir
[DW_FORM_string
] ("{{([A-Za-z]:.*)?}}/test/comp/dir")
7 // RUN
: mkdir
-p
%t.foo
8 // RUN
: ln
-sf %t.foo
%t.bar
10 // RUN
: env PWD
=%t.bar llvm-mc
-triple
=x86_64-linux-unknown
-g
%s
-filetype
=obj
-o
%t.o
11 // RUN
: llvm-dwarfdump
-v
-debug-info
%t.o | FileCheck
--check-prefix
=PWD
%s
12 // PWD
: DW_AT_comp_dir
[DW_FORM_string
] ("{{.*}}.bar")