summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/call-void.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Generic/call-void.ll')
-rw-r--r--test/CodeGen/Generic/call-void.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/call-void.ll b/test/CodeGen/Generic/call-void.ll
new file mode 100644
index 0000000000000..b882689923968
--- /dev/null
+++ b/test/CodeGen/Generic/call-void.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc
+
+define void @foo() {
+ ret void
+}
+
+define i32 @main() {
+ call void @foo( )
+ ret i32 0
+}
+