diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-19 21:12:39 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-19 21:12:39 +0000 |
commit | 09d689f90c745119a320c0808d775d5c60aaaade (patch) | |
tree | 7c7ac1b48cb13bc75a3f405eb2c60e3bb9c50771 /llvm/test/Assembler | |
parent | 92045bc37c84ff6e4a819685879d062a57bc8b45 (diff) | |
download | bcm5719-llvm-09d689f90c745119a320c0808d775d5c60aaaade.tar.gz bcm5719-llvm-09d689f90c745119a320c0808d775d5c60aaaade.zip |
Make it explicit that nulls are not allowed in names.
The object files we support use null terminated strings, so there is no way to
support these.
This patch adds an assert to catch bad API use and an error check in the .ll
parser.
llvm-svn: 195155
Diffstat (limited to 'llvm/test/Assembler')
-rw-r--r-- | llvm/test/Assembler/invalid-name.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-name.ll b/llvm/test/Assembler/invalid-name.ll new file mode 100644 index 00000000000..d9d7a110880 --- /dev/null +++ b/llvm/test/Assembler/invalid-name.ll @@ -0,0 +1,6 @@ +; RUN: not llvm-as %s 2>&1 | FileCheck %s + +; CHECK: expected function name +define void @"zed\00bar"() { + ret void +} |