fix an IPSCCP bug I introduced when I changed IPSCCP to start working on
[oota-llvm.git] / test / Transforms / SCCP / ipsccp-basic.ll
index ec349e91d242d58c21516b0b1124f647c5f83fd0..2442c56e0195d788d84608a0e68fd06267b9fc23 100644 (file)
@@ -174,4 +174,24 @@ define i32 @test7b() {
 ; CHECK-NEXT: ret i32 36
 }
 
+;;======================== test8
+
+
+define internal {} @test8a(i32 %A, i32* %P) {
+  store i32 %A, i32* %P
+  ret {} {}
+; CHECK: @test8a
+; CHECK-NEXT: store i32 5, 
+; CHECK-NEXT: ret 
+}
+
+define void @test8b(i32* %P) {
+    %X = call {} @test8a(i32 5, i32* %P)
+    ret void
+; CHECK: define void @test8b
+; CHECK-NEXT: call {} @test8a
+; CHECK-NEXT: ret void
+}
+
+