summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2019-01-29 20:53:51 +0000
committerPaul Robinson <paul.robinson@sony.com>2019-01-29 20:53:51 +0000
commit4ca29477d9d6f219a92ba499f380fb57ffe00e8b (patch)
tree1da3d38176ea122c3ab76103f3a0e2b819d92f2a /llvm/test
parent58fc8082a89f51a7cec210fa57c301bcb754aef0 (diff)
downloadbcm5719-llvm-4ca29477d9d6f219a92ba499f380fb57ffe00e8b.tar.gz
bcm5719-llvm-4ca29477d9d6f219a92ba499f380fb57ffe00e8b.zip
[DWARF] Emit reasonable debug info for empty .s files.
llvm-svn: 352541
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/AsmParser/debug-only-comments.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/debug-only-comments.s b/llvm/test/MC/AsmParser/debug-only-comments.s
new file mode 100644
index 00000000000..0330653498b
--- /dev/null
+++ b/llvm/test/MC/AsmParser/debug-only-comments.s
@@ -0,0 +1,6 @@
+ # RUN: llvm-mc -triple i386-linux-gnu -g -dwarf-version 4 < %s | FileCheck %s
+ # RUN: llvm-mc -triple i386-linux-gnu -g -dwarf-version 5 < %s | FileCheck %s
+ # CHECK: .section .debug_info
+ # CHECK: .section .debug_info
+ # CHECK-NOT: .section
+ # CHECK: .ascii "<stdin>"
OpenPOWER on IntegriCloud