diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-01 09:01:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-01 09:01:57 +0000 |
commit | 3272c7f6996b0af462e9663b81bd8ff2afa68634 (patch) | |
tree | db93a0a14cfea9591f27830c990cdbe24922a392 /test/Verifier | |
parent | 0f0aa8f5c40af96f40edd13ed3a2f86887cae18e (diff) | |
download | external_llvm-3272c7f6996b0af462e9663b81bd8ff2afa68634.zip external_llvm-3272c7f6996b0af462e9663b81bd8ff2afa68634.tar.gz external_llvm-3272c7f6996b0af462e9663b81bd8ff2afa68634.tar.bz2 |
Fix PR2113 by verifying allocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r-- | test/Verifier/2008-03-01-AllocaSized.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Verifier/2008-03-01-AllocaSized.ll b/test/Verifier/2008-03-01-AllocaSized.ll new file mode 100644 index 0000000..eb96ced --- /dev/null +++ b/test/Verifier/2008-03-01-AllocaSized.ll @@ -0,0 +1,8 @@ +; RUN: not llvm-as -f %s -o /dev/null |& grep {Cannot allocate unsized type} +; PR2113 + +define void @test() { + %A = alloca void() + ret void +} + |