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.ll13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/CodeGen/Generic/call-void.ll b/test/CodeGen/Generic/call-void.ll
index 64e6336b16f..b8826899239 100644
--- a/test/CodeGen/Generic/call-void.ll
+++ b/test/CodeGen/Generic/call-void.ll
@@ -1,10 +1,11 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc
+; RUN: llvm-as < %s | llc
-void %foo() {
- ret void
+define void @foo() {
+ ret void
}
-int %main() {
- call void ()* %foo()
- ret int 0
+define i32 @main() {
+ call void @foo( )
+ ret i32 0
}
+