diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-15 23:26:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-15 23:26:28 +0000 |
commit | 1d4b6bfd3e3b03ec0bcd81bc3116173876c81c6e (patch) | |
tree | cdb48ea5dede4c4bb69859efb9c3c46c7836d5d7 /test/Verifier | |
parent | f53104051e87552b708c3b3b0a79e8910d80cf90 (diff) | |
download | external_llvm-1d4b6bfd3e3b03ec0bcd81bc3116173876c81c6e.zip external_llvm-1d4b6bfd3e3b03ec0bcd81bc3116173876c81c6e.tar.gz external_llvm-1d4b6bfd3e3b03ec0bcd81bc3116173876c81c6e.tar.bz2 |
testcase that causes the asmparser to assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r-- | test/Verifier/2006-10-15-AddrLabel.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Verifier/2006-10-15-AddrLabel.ll b/test/Verifier/2006-10-15-AddrLabel.ll new file mode 100644 index 0000000..7c68d94 --- /dev/null +++ b/test/Verifier/2006-10-15-AddrLabel.ll @@ -0,0 +1,9 @@ +; RUN: not llvm-as %s -o /dev/null -f && +; RUN: llvm-as %s -o /dev/null -f 2>&1 | grep 'Cannot form' + +int %main() { + %foo = call sbyte* %llvm.stacksave() + %foop = cast sbyte* %foo to label* + %nret = load label* %foop + br label %nret; +} |