summaryrefslogtreecommitdiff
path: root/test/Assembler
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-11-19 21:12:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-11-19 21:12:39 +0000
commitedeaa6454ef1dc29fa3144b93e2121495b160b35 (patch)
treebeb9ac26a0bd4914e84b584d2466c6923cf60851 /test/Assembler
parenta49e1f55da902fe1b50e3ea989357d3e70b24dc9 (diff)
downloadllvm-edeaa6454ef1dc29fa3144b93e2121495b160b35.tar.gz
llvm-edeaa6454ef1dc29fa3144b93e2121495b160b35.tar.bz2
llvm-edeaa6454ef1dc29fa3144b93e2121495b160b35.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r--test/Assembler/invalid-name.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Assembler/invalid-name.ll b/test/Assembler/invalid-name.ll
new file mode 100644
index 0000000000..d9d7a11088
--- /dev/null
+++ b/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
+}