aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-13 14:15:20 +0000
committerChris Lattner <sabre@nondot.org>2002-12-13 14:15:20 +0000
commite4adeb47ff23fdc92e5f318bb1548f703b773b6e (patch)
tree15361c63b423a58973dfd7bebfa9cce8a1aaa727 /test
parent6e49a4b814e7bc51f8fed7871e0c9ef207de9fd2 (diff)
downloadexternal_llvm-e4adeb47ff23fdc92e5f318bb1548f703b773b6e.zip
external_llvm-e4adeb47ff23fdc92e5f318bb1548f703b773b6e.tar.gz
external_llvm-e4adeb47ff23fdc92e5f318bb1548f703b773b6e.tar.bz2
Test indirect call
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/ExecutionEngine/test-call.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/ExecutionEngine/test-call.ll b/test/ExecutionEngine/test-call.ll
index 4c7bbaa..a69d850 100644
--- a/test/ExecutionEngine/test-call.ll
+++ b/test/ExecutionEngine/test-call.ll
@@ -1,7 +1,13 @@
declare void %exit(int)
+
+void %FP(void(int) * %F) {
+ call void %F(int 0)
+ ret void
+}
+
int %main() {
- call void %exit(int 0)
+ call void %FP(void(int)* %exit)
ret int 1
}