aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-11 20:28:16 +0000
committerChris Lattner <sabre@nondot.org>2002-03-11 20:28:16 +0000
commit6a314b58c7851a2137b3b534d9edf0fe992ed475 (patch)
treef048eabf0ba8ac272213f9dac2ba7a667bd19665
parent2286a9c34ae0634b2f1927d42c988eb904932f71 (diff)
Testcase that causes an assertion failure in lib/Analysis/Expressions.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1855 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Other/2002-03-11-ExprAssertion.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Other/2002-03-11-ExprAssertion.ll b/test/Other/2002-03-11-ExprAssertion.ll
new file mode 100644
index 0000000000..4c6dcb642a
--- /dev/null
+++ b/test/Other/2002-03-11-ExprAssertion.ll
@@ -0,0 +1,13 @@
+; RUN: analyze -exprs %s
+
+implementation
+
+void "foo"(int %reg126)
+begin
+ %cast1007 = cast int %reg126 to uint ; <uint> [#uses=1]
+
+ %reg119 = sub uint %cast1007, %cast1007 ; <uint> [#uses=1]
+ %cast121 = cast uint %reg119 to sbyte * ; <sbyte *> [#uses=1]
+
+ ret void
+end