summaryrefslogtreecommitdiffstats
path: root/test/DebugInfo/X86/main-file-name.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/DebugInfo/X86/main-file-name.s')
-rw-r--r--test/DebugInfo/X86/main-file-name.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/DebugInfo/X86/main-file-name.s b/test/DebugInfo/X86/main-file-name.s
new file mode 100644
index 0000000..0369c61
--- /dev/null
+++ b/test/DebugInfo/X86/main-file-name.s
@@ -0,0 +1,17 @@
+// RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -main-file-name foo.S -g -o %t %s
+// RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
+
+// CHECK: DW_TAG_compile_unit [1]
+// CHECK-NOT: DW_TAG_
+// CHECK: DW_AT_name [DW_FORM_string] ("foo.S")
+
+
+# 1 "foo.S"
+# 1 "<built-in>" 1
+# 1 "foo.S" 2
+
+foo:
+ nop
+ nop
+ nop
+
OpenPOWER on IntegriCloud