aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-16 03:43:53 +0000
committerChris Lattner <sabre@nondot.org>2011-01-16 03:43:53 +0000
commit156eb0a569a1ebac86ad8438645f690d8a3894c4 (patch)
treefd2c93d6f15153df3cbb49f68d44c2d5c4dd13c7 /test/Transforms
parentc1a62834a2ad33a80ca2b1f3a549f4f7806cd320 (diff)
fix PR8983, a broken assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/InstCombine/crash.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/crash.ll b/test/Transforms/InstCombine/crash.ll
index e87a30254e..e8babc3a1e 100644
--- a/test/Transforms/InstCombine/crash.ll
+++ b/test/Transforms/InstCombine/crash.ll
@@ -341,3 +341,15 @@ define double @test16(i32 %a) nounwind {
%select = select i1 %cmp, double 2.000000e+00, double 3.141592e+00
ret double %select
}
+
+
+; PR8983
+%struct.basic_ios = type { i8 }
+
+define %struct.basic_ios *@test17() ssp {
+entry:
+ %add.ptr.i = getelementptr i8* null, i64 undef
+ %0 = bitcast i8* %add.ptr.i to %struct.basic_ios*
+ ret %struct.basic_ios* %0
+}
+