aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-22 22:17:54 +0000
committerChris Lattner <sabre@nondot.org>2002-05-22 22:17:54 +0000
commit9488e1bf26b18d07564c67f3a7138e5c020789e4 (patch)
tree549d64120ea09b465a5c9132ba0823f31d22f81b
parentfaa967ea6142423546788877228eb03895a2a229 (diff)
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2724 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Feature/simplecalltest.ll25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/Feature/simplecalltest.ll b/test/Feature/simplecalltest.ll
new file mode 100644
index 0000000000..1ac9fe3630
--- /dev/null
+++ b/test/Feature/simplecalltest.ll
@@ -0,0 +1,25 @@
+%FunTy = type int(int)
+
+implementation
+
+void "invoke"(%FunTy *%x)
+begin
+ %foo = call %FunTy* %x(int 123)
+ ret void
+end
+
+int "main"(int %argc, sbyte **%argv, sbyte **%envp)
+begin
+ %retval = call int (int) *%test(int %argc)
+ %two = add int %retval, %retval
+ %retval2 = call int %test(int %argc)
+
+ %two2 = add int %two, %retval2
+ call void %invoke (%FunTy* %test)
+ ret int %two2
+end
+
+int "test"(int %i0)
+begin
+ ret int %i0
+end