diff options
author | Duncan Sands <baldrick@free.fr> | 2008-01-14 14:55:05 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-01-14 14:55:05 +0000 |
commit | 65a21508a4491746b85c84a00f3e1b522991d608 (patch) | |
tree | ec3f1b9c62898883605b2b8c110bc2ee3af0e918 /test/Verifier/byval-2.ll | |
parent | 27010c3793da27b520a51fb7a6f2d214dea98ea6 (diff) | |
download | external_llvm-65a21508a4491746b85c84a00f3e1b522991d608.zip external_llvm-65a21508a4491746b85c84a00f3e1b522991d608.tar.gz external_llvm-65a21508a4491746b85c84a00f3e1b522991d608.tar.bz2 |
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/byval-2.ll')
-rw-r--r-- | test/Verifier/byval-2.ll | 3 |
1 files changed, 2 insertions, 1 deletions
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) |