2019-09-10 02:06:52 +02:00
|
|
|
// Don't try to make symlinks on Windows.
|
|
|
|
// UNSUPPORTED: system-windows
|
|
|
|
//
|
2012-12-17 22:44:50 +01:00
|
|
|
// RUN: llvm-mc -triple=x86_64-linux-unknown -g -fdebug-compilation-dir=/test/comp/dir %s -filetype=obj -o %t.o
|
2017-09-12 01:05:20 +02:00
|
|
|
// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s
|
2012-12-17 22:32:42 +01:00
|
|
|
|
2012-12-18 06:08:12 +01:00
|
|
|
// CHECK: DW_AT_comp_dir [DW_FORM_string] ("{{([A-Za-z]:.*)?}}/test/comp/dir")
|
2012-12-17 22:32:42 +01:00
|
|
|
|
2013-08-10 02:50:57 +02:00
|
|
|
// RUN: mkdir -p %t.foo
|
|
|
|
// RUN: ln -sf %t.foo %t.bar
|
|
|
|
// RUN: cd %t.foo
|
|
|
|
// RUN: env PWD=%t.bar llvm-mc -triple=x86_64-linux-unknown -g %s -filetype=obj -o %t.o
|
2017-09-12 01:05:20 +02:00
|
|
|
// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck --check-prefix=PWD %s
|
2013-08-10 02:50:57 +02:00
|
|
|
// PWD: DW_AT_comp_dir [DW_FORM_string] ("{{.*}}.bar")
|
|
|
|
|
|
|
|
|
2012-12-17 22:32:42 +01:00
|
|
|
f:
|
|
|
|
nop
|