aboutsummaryrefslogtreecommitdiff
path: root/test/Verifier
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-11-15 17:50:47 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-11-15 17:50:47 +0000
commit70c44f0cce6516df270019444f8f04066d6b16c9 (patch)
tree2df423e08b4a7d1303dbf789c5c4af58de15d1c2 /test/Verifier
parent2ef5d4cd6ab2e8f57bba88cc6ef0e3132e784e63 (diff)
Correct this error message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r--test/Verifier/2008-11-15-RetVoid.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Verifier/2008-11-15-RetVoid.ll b/test/Verifier/2008-11-15-RetVoid.ll
new file mode 100644
index 0000000000..dbdcae2851
--- /dev/null
+++ b/test/Verifier/2008-11-15-RetVoid.ll
@@ -0,0 +1,5 @@
+; RUN: not llvm-as < %s |& grep {returns non-void in Function of void return}
+
+define void @foo() {
+ ret i32 0
+}