summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/call-void.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Generic/call-void.ll')
-rw-r--r--llvm/test/CodeGen/Generic/call-void.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/call-void.ll b/llvm/test/CodeGen/Generic/call-void.ll
new file mode 100644
index 00000000000..64e6336b16f
--- /dev/null
+++ b/llvm/test/CodeGen/Generic/call-void.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc
+
+void %foo() {
+ ret void
+}
+
+int %main() {
+ call void ()* %foo()
+ ret int 0
+}
OpenPOWER on IntegriCloud