summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/2004-12-08-InstCombineCrash.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-12-08-InstCombineCrash.ll b/test/Transforms/InstCombine/2004-12-08-InstCombineCrash.ll
new file mode 100644
index 0000000..02939c0
--- /dev/null
+++ b/test/Transforms/InstCombine/2004-12-08-InstCombineCrash.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as %s -o - | opt -instcombine
+
+ %struct.llvm_java_object_base = type opaque
+ "java/lang/Object" = type { %struct.llvm_java_object_base }
+ "java/lang/StringBuffer" = type { "java/lang/Object", int, { "java/lang/Object", uint, [0 x ushort] }*, bool }
+
+implementation ; Functions:
+
+void "java/lang/StringBuffer/append(Ljava/lang/String;)Ljava/lang/StringBuffer;"() {
+bc0:
+ %tmp53 = getelementptr "java/lang/StringBuffer"* null, int 0, uint 1 ; <int*> [#uses=1]
+ store int 0, int* %tmp53
+ ret void
+}