summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-mdglobalvariable-empty-name.ll
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-31 01:28:22 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-31 01:28:22 +0000
commit94d58f88801833c1d8d1bbc3d3f4244be9e2348d (patch)
tree7814a3433ac2be78578fca9689edb08a470a9906 /llvm/test/Assembler/invalid-mdglobalvariable-empty-name.ll
parent3744fd09d8f453d7442f61f872e333918b3069a1 (diff)
downloadbcm5719-llvm-94d58f88801833c1d8d1bbc3d3f4244be9e2348d.tar.gz
bcm5719-llvm-94d58f88801833c1d8d1bbc3d3f4244be9e2348d.zip
Verifier: Move more debug info checks away from Verify()
Most of these checks were already in the `Verifier` so this is more of a cleanup. Now almost everything is over there. Now that require a `name:` for `MDGlobalVariable`, add a check in `LLParser` for it. llvm-svn: 233657
Diffstat (limited to 'llvm/test/Assembler/invalid-mdglobalvariable-empty-name.ll')
-rw-r--r--llvm/test/Assembler/invalid-mdglobalvariable-empty-name.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-mdglobalvariable-empty-name.ll b/llvm/test/Assembler/invalid-mdglobalvariable-empty-name.ll
new file mode 100644
index 00000000000..77a9f4d773e
--- /dev/null
+++ b/llvm/test/Assembler/invalid-mdglobalvariable-empty-name.ll
@@ -0,0 +1,4 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+; CHECK: <stdin>:[[@LINE+1]]:30: error: 'name' cannot be empty
+!0 = !MDGlobalVariable(name: "")
OpenPOWER on IntegriCloud