summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/global-ret0.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Generic/global-ret0.ll')
-rw-r--r--llvm/test/CodeGen/Generic/global-ret0.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/Generic/global-ret0.ll b/llvm/test/CodeGen/Generic/global-ret0.ll
index dfe6aef67d3..8fcef33a34d 100644
--- a/llvm/test/CodeGen/Generic/global-ret0.ll
+++ b/llvm/test/CodeGen/Generic/global-ret0.ll
@@ -1,8 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc
+; RUN: llvm-as < %s | llc
-%g = global int 0
+@g = global i32 0 ; <i32*> [#uses=1]
-int %main() {
- %h = load int* %g
- ret int %h
+define i32 @main() {
+ %h = load i32* @g ; <i32> [#uses=1]
+ ret i32 %h
}
OpenPOWER on IntegriCloud