diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-31 01:28:22 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-31 01:28:22 +0000 |
| commit | 94d58f88801833c1d8d1bbc3d3f4244be9e2348d (patch) | |
| tree | 7814a3433ac2be78578fca9689edb08a470a9906 /llvm/test/Assembler/invalid-mdglobalvariable-empty-name.ll | |
| parent | 3744fd09d8f453d7442f61f872e333918b3069a1 (diff) | |
| download | bcm5719-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.ll | 4 |
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: "") |

