aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/TailCallElim/basic.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/TailCallElim/basic.ll')
-rw-r--r--test/Transforms/TailCallElim/basic.ll12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/Transforms/TailCallElim/basic.ll b/test/Transforms/TailCallElim/basic.ll
index 2488b552d8f3..b303fa743ca9 100644
--- a/test/Transforms/TailCallElim/basic.ll
+++ b/test/Transforms/TailCallElim/basic.ll
@@ -156,7 +156,7 @@ define void @test9(i32* byval %a) {
declare void @ctor(%struct.X*)
define void @test10(%struct.X* noalias sret %agg.result, i1 zeroext %b) {
-; CHECK-LABEL @test10
+; CHECK-LABEL: @test10
entry:
%x = alloca %struct.X, align 8
br i1 %b, label %if.then, label %if.end
@@ -188,3 +188,13 @@ define void @test11() {
; CHECK: call void @test11_helper2
ret void
}
+
+; PR25928
+define void @test12() {
+entry:
+; CHECK-LABEL: @test12
+; CHECK: {{^ *}} call void undef(i8* undef) [ "foo"(i8* %e) ]
+ %e = alloca i8
+ call void undef(i8* undef) [ "foo"(i8* %e) ]
+ unreachable
+}