testcase that causes the asmparser to assert
authorChris Lattner <sabre@nondot.org>
Sun, 15 Oct 2006 23:26:28 +0000 (23:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Oct 2006 23:26:28 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30969 91177308-0d34-0410-b5e6-96231b3b80d8

test/Verifier/2006-10-15-AddrLabel.ll [new file with mode: 0644]

diff --git a/test/Verifier/2006-10-15-AddrLabel.ll b/test/Verifier/2006-10-15-AddrLabel.ll
new file mode 100644 (file)
index 0000000..7c68d94
--- /dev/null
@@ -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;
+}