summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ELF/comp-dir.s
blob: 59edce1ca54527e33945a46b5d6ed13ffa05d1d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Don't try to make symlinks on Windows.
// UNSUPPORTED: system-windows
//
// RUN: llvm-mc -triple=x86_64-linux-unknown -g -fdebug-compilation-dir=/test/comp/dir %s -filetype=obj -o %t.o
// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s

// CHECK: DW_AT_comp_dir [DW_FORM_string] ("{{([A-Za-z]:.*)?}}/test/comp/dir")

// 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
// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck --check-prefix=PWD %s
// PWD: DW_AT_comp_dir [DW_FORM_string] ("{{.*}}.bar")


f:
  nop
OpenPOWER on IntegriCloud