Test that byval cannot be used with pointers to
authorDuncan Sands <baldrick@free.fr>
Mon, 14 Jan 2008 14:55:05 +0000 (14:55 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 14 Jan 2008 14:55:05 +0000 (14:55 +0000)
types with no size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45959 91177308-0d34-0410-b5e6-96231b3b80d8

test/Verifier/byval-2.ll

index 56b8a27d1f580ba32a3a0418c5ecca2696c78485..19d49bbd5ddcedf0ad378680f790d74d30d5b429 100644 (file)
@@ -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)