summaryrefslogtreecommitdiff
path: root/test/Verifier
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-01-14 14:55:05 +0000
committerDuncan Sands <baldrick@free.fr>2008-01-14 14:55:05 +0000
commit559ad3c2c2c33805e80e9dc0546796a5baa58b1c (patch)
treeec3f1b9c62898883605b2b8c110bc2ee3af0e918 /test/Verifier
parentd6a844cda8ddd115b509a14cd9dac0cab999cb42 (diff)
downloadllvm-559ad3c2c2c33805e80e9dc0546796a5baa58b1c.tar.gz
llvm-559ad3c2c2c33805e80e9dc0546796a5baa58b1c.tar.bz2
llvm-559ad3c2c2c33805e80e9dc0546796a5baa58b1c.tar.xz
Test that byval cannot be used with pointers to
types with no size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r--test/Verifier/byval-2.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Verifier/byval-2.ll b/test/Verifier/byval-2.ll
index 56b8a27d1f..19d49bbd5d 100644
--- a/test/Verifier/byval-2.ll
+++ b/test/Verifier/byval-2.ll
@@ -1,2 +1,3 @@
; RUN: not llvm-as < %s -o /dev/null -f
-declare void @h(i32* %num) byval
+ %s = type opaque
+declare void @h(%s* byval %num)