Add another simple call
authorChris Lattner <sabre@nondot.org>
Sat, 28 Dec 2002 20:01:07 +0000 (20:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 28 Dec 2002 20:01:07 +0000 (20:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5160 91177308-0d34-0410-b5e6-96231b3b80d8

test/ExecutionEngine/test-call.ll

index a69d8504577fe4818e277cc3b58c6acf9f60c2a8..50f0e6e9e1b7d5ad5aa152a96952486f4e7e1f8e 100644 (file)
@@ -1,9 +1,14 @@
 
 declare void %exit(int)
 
+int %test(sbyte %C, short %S) {
+  %X = cast short %S to int
+  ret int %X
+}
 
 void %FP(void(int) * %F) {
-       call void %F(int 0)
+       %X = call int %test(sbyte 123, short 1024)
+       call void %F(int %X)
        ret void
 }