summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser
diff options
context:
space:
mode:
authorScott Linder <scott@scottlinder.com>2018-02-23 23:13:18 +0000
committerScott Linder <scott@scottlinder.com>2018-02-23 23:13:18 +0000
commitc16b975ac8275d0503411b2a4bcb76112c19d046 (patch)
treeee440bdb0cd1c30384ea3fa06a06cdd89d76daee /llvm/test/MC/AsmParser
parentbcc82c9a78b1690af80836093aa32ab8470cc8f4 (diff)
downloadbcm5719-llvm-c16b975ac8275d0503411b2a4bcb76112c19d046.tar.gz
bcm5719-llvm-c16b975ac8275d0503411b2a4bcb76112c19d046.zip
[DebugInfo] Add remaining files to r325970
Add files which I missed in the original check-in llvm-svn: 325973
Diffstat (limited to 'llvm/test/MC/AsmParser')
-rw-r--r--llvm/test/MC/AsmParser/debug-empty-source.s7
-rw-r--r--llvm/test/MC/AsmParser/debug-no-source.s5
2 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/debug-empty-source.s b/llvm/test/MC/AsmParser/debug-empty-source.s
new file mode 100644
index 00000000000..2f2039cfdae
--- /dev/null
+++ b/llvm/test/MC/AsmParser/debug-empty-source.s
@@ -0,0 +1,7 @@
+// RUN: llvm-mc %s -o -| FileCheck %s
+
+.file 1 "dir1" "foo" source ""
+.loc 1 1 0
+nop
+
+# CHECK: .file {{.*}} source ""
diff --git a/llvm/test/MC/AsmParser/debug-no-source.s b/llvm/test/MC/AsmParser/debug-no-source.s
new file mode 100644
index 00000000000..590feba8c76
--- /dev/null
+++ b/llvm/test/MC/AsmParser/debug-no-source.s
@@ -0,0 +1,5 @@
+// RUN: llvm-mc %s | FileCheck %s
+
+.file 1 "dir1/foo"
+
+# CHECK-NOT: .file {{.*}} source
OpenPOWER on IntegriCloud