test that tail call survives bytecodification
authorChris Lattner <sabre@nondot.org>
Fri, 6 May 2005 06:18:33 +0000 (06:18 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 6 May 2005 06:18:33 +0000 (06:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21728 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/calltest.ll

index 8adbe4937180312c716cfd77705d0a542dbf9c5c..861d7632d41ab3a9afe9a317d14f8f0190880d4c 100644 (file)
@@ -9,11 +9,11 @@ declare int "test"()      ; Differ only by vararg
 
 implementation
 
-void "invoke"(%FunTy *%x)
-begin
+void "invoke"(%FunTy *%x) {
        %foo = call %FunTy* %x(int 123)
+       %foo2 = tail call %FunTy* %x(int 123)
        ret void
-end
+}
 
 int "main"(int %argc)   ; TODO: , sbyte **argv, sbyte **envp)
 begin