diff options
Diffstat (limited to 'test/CodeGen/Generic/call-void.ll')
-rw-r--r-- | test/CodeGen/Generic/call-void.ll | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/CodeGen/Generic/call-void.ll b/test/CodeGen/Generic/call-void.ll index 64e6336..b882689 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 } + |