about summary refs log tree commit diff homepage
path: root/test/Concrete/OneCall.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Concrete/OneCall.ll')
-rw-r--r--test/Concrete/OneCall.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Concrete/OneCall.ll b/test/Concrete/OneCall.ll
new file mode 100644
index 00000000..d8b94b37
--- /dev/null
+++ b/test/Concrete/OneCall.ll
@@ -0,0 +1,12 @@
+declare void @print_i32(i32)
+
+define i32 @sum(i32 %a, i32 %b) {
+	%c = sub i32 %a, %b
+	ret i32 %c
+}
+
+define i32 @main() {
+	%a = call i32 @sum(i32 54, i32 2)
+	call void @print_i32(i32 %a)
+	ret i32 0
+}