aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine/test-call.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ExecutionEngine/test-call.ll')
-rw-r--r--test/ExecutionEngine/test-call.ll7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ExecutionEngine/test-call.ll b/test/ExecutionEngine/test-call.ll
index a69d850..50f0e6e 100644
--- a/test/ExecutionEngine/test-call.ll
+++ b/test/ExecutionEngine/test-call.ll
@@ -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
}