From 559ad3c2c2c33805e80e9dc0546796a5baa58b1c Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 14 Jan 2008 14:55:05 +0000 Subject: 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 --- test/Verifier/byval-2.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/Verifier') diff --git a/test/Verifier/byval-2.ll b/test/Verifier/byval-2.ll index 56b8a27..19d49bb 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) -- cgit v1.1