]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/MC/ELF/comp-dir.s
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / MC / ELF / comp-dir.s
1 // REQUIRES: shell
2 // XFAIL: mingw
3 // RUN: llvm-mc -triple=x86_64-linux-unknown -g -fdebug-compilation-dir=/test/comp/dir %s -filetype=obj -o %t.o
4 // RUN: llvm-dwarfdump -debug-dump=info %t.o | FileCheck %s
5
6 // CHECK: DW_AT_comp_dir [DW_FORM_string] ("{{([A-Za-z]:.*)?}}/test/comp/dir")
7
8 // RUN: mkdir -p %t.foo
9 // RUN: ln -sf %t.foo %t.bar
10 // RUN: cd %t.foo
11 // RUN: env PWD=%t.bar llvm-mc -triple=x86_64-linux-unknown -g %s -filetype=obj -o %t.o
12 // RUN: llvm-dwarfdump -debug-dump=info %t.o | FileCheck --check-prefix=PWD %s
13 // PWD: DW_AT_comp_dir [DW_FORM_string] ("{{.*}}.bar")
14
15
16 f:
17   nop