From: Duncan Sands Date: Mon, 14 Jan 2008 14:55:05 +0000 (+0000) Subject: Test that byval cannot be used with pointers to X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=559ad3c2c2c33805e80e9dc0546796a5baa58b1c;p=oota-llvm.git 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 --- diff --git a/test/Verifier/byval-2.ll b/test/Verifier/byval-2.ll index 56b8a27d1f5..19d49bbd5dd 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)