summaryrefslogtreecommitdiff
path: root/test/MC/ELF/comp-dir.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/comp-dir.s')
-rw-r--r--test/MC/ELF/comp-dir.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/ELF/comp-dir.s b/test/MC/ELF/comp-dir.s
new file mode 100644
index 0000000000..2c7de4ca31
--- /dev/null
+++ b/test/MC/ELF/comp-dir.s
@@ -0,0 +1,7 @@
+// RUN: llvm-mc -g -fdebug-compilation-dir=/test/comp/dir %s -filetype=obj -o %t.o
+// RUN: llvm-dwarfdump %t.o | FileCheck %s
+
+// CHECK: DW_AT_comp_dir [DW_FORM_string] ("/test/comp/dir")
+
+f:
+ nop