1// Don't try to make symlinks on Windows.
2// UNSUPPORTED: system-windows
3//
4// RUN: llvm-mc -triple=x86_64-linux-unknown -g -fdebug-compilation-dir=/test/comp/dir %s -filetype=obj -o %t.o
5// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s
6
7// CHECK: DW_AT_comp_dir [DW_FORM_string] ("{{([A-Za-z]:.*)?}}/test/comp/dir")
8
9// RUN: mkdir -p %t.foo
10// RUN: ln -sf %t.foo %t.bar
11// RUN: cd %t.foo
12// RUN: env PWD=%t.bar llvm-mc -triple=x86_64-linux-unknown -g %s -filetype=obj -o %t.o
13// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck --check-prefix=PWD %s
14// PWD: DW_AT_comp_dir [DW_FORM_string] ("{{.*}}.bar")
15
16
17f:
18  nop
19